mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 02:15:32 +00:00
Issue #1887: Equipped items do not emit sounds
Removed unused mUnequipping and mFirstEquip member variables. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
parent
3b9cfba03c
commit
1a0c3dc6cf
2 changed files with 0 additions and 6 deletions
|
@ -187,8 +187,6 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, Ogre::SceneNode* node, int v
|
|||
mFirstPersonOffset(0.f, 0.f, 0.f),
|
||||
mAlpha(1.f),
|
||||
mNpcType(Type_Normal),
|
||||
mUnequipping(false),
|
||||
mFirstEquip(true),
|
||||
mInv(ptr.getClass().getInventoryStore(ptr))
|
||||
{
|
||||
mNpc = mPtr.get<ESM::NPC>()->mBase;
|
||||
|
@ -664,7 +662,6 @@ bool NpcAnimation::addOrReplaceIndividualPart(ESM::PartReferenceType type, int g
|
|||
|
||||
std::string soundId;
|
||||
MWWorld::ContainerStoreIterator csi = mInv.getSlot(group < 0 ? MWWorld::InventoryStore::Slot_Helmet : group);
|
||||
|
||||
if (csi != mInv.end() && csi->getTypeName() == typeid(ESM::Light).name())
|
||||
{
|
||||
soundId = csi->get<ESM::Light>()->mBase->mSound;
|
||||
|
|
|
@ -97,9 +97,6 @@ private:
|
|||
Ogre::SharedPtr<WeaponAnimationTime> mWeaponAnimationTime;
|
||||
|
||||
float mAlpha;
|
||||
bool mUnequipping;
|
||||
bool mFirstEquip;
|
||||
|
||||
MWWorld::InventoryStore& mInv;
|
||||
|
||||
void updateNpcBase();
|
||||
|
|
Loading…
Reference in a new issue