Issue #1887: Equipped items do not emit sounds

Removed unused mUnequipping and mFirstEquip member variables.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
deque
Lukasz Gromanowski 10 years ago
parent 3b9cfba03c
commit 1a0c3dc6cf

@ -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…
Cancel
Save