Issue #1887: Equipped items do not emit sounds

Added playing of sounds for equipped items (at this moment only for lights).

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Revert "Issue #1887: Equipped items do not emit sounds"

This reverts commit 566211e7532e1b30f3429b7c0f06198c4f9fdf50.
Issue #1887: Equipped items do not emit sounds

Added playing of sounds for equipped items (at this moment only for lights).

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Issue #1887: Equipped items do not emit sounds

Added handling of autoEquip and unequipAll cases.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
fixes errors in connecting Sdl and Ogre for nvidia tegra3 and in theory for other devices based on android
Issue #1887: Equipped items do not emit sounds

Played sound items are based on parts not inserted items.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Issue #1887: Equipped items do not emit sounds

Sounds are played only when actors draw state
is equal to MWMechanics::DrawState_Nothing

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Issue #1887: Equipped items do not emit sounds

Removed unused mUnequipping and mFirstEquip member variables.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Issue #1887: Equipped items do not emit sounds

Use separate arrays for sound ids and object parts.
Restored getting inventoryStore via getInventoryStore()
call (removed mInv introduced in previous commit).

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Fixes #1887: Equipped items do not emit sounds

Added getSound() method to MWClass class and implementation
into Light class.

Also added additional bool parameter responsible for enabling/disabling
of playing items sounds into NpcAnimation class constructor.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Fixes #1887: Equipped items do not emit sounds

Corrected wrong return type of Class::getSound() method.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Merge remote-tracking branch 'sandstranger/fix-errors-in-creating-sdl-window-for-nvidia-tegra3'
Merge remote-tracking branch 'lgro/issue1887_equipped_items_doesnt_emit_sound'

Conflicts:
	apps/openmw/mwworld/class.cpp