forked from mirror/openmw-tes3mp
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),
|
mFirstPersonOffset(0.f, 0.f, 0.f),
|
||||||
mAlpha(1.f),
|
mAlpha(1.f),
|
||||||
mNpcType(Type_Normal),
|
mNpcType(Type_Normal),
|
||||||
mUnequipping(false),
|
|
||||||
mFirstEquip(true),
|
|
||||||
mInv(ptr.getClass().getInventoryStore(ptr))
|
mInv(ptr.getClass().getInventoryStore(ptr))
|
||||||
{
|
{
|
||||||
mNpc = mPtr.get<ESM::NPC>()->mBase;
|
mNpc = mPtr.get<ESM::NPC>()->mBase;
|
||||||
|
@ -664,7 +662,6 @@ bool NpcAnimation::addOrReplaceIndividualPart(ESM::PartReferenceType type, int g
|
||||||
|
|
||||||
std::string soundId;
|
std::string soundId;
|
||||||
MWWorld::ContainerStoreIterator csi = mInv.getSlot(group < 0 ? MWWorld::InventoryStore::Slot_Helmet : group);
|
MWWorld::ContainerStoreIterator csi = mInv.getSlot(group < 0 ? MWWorld::InventoryStore::Slot_Helmet : group);
|
||||||
|
|
||||||
if (csi != mInv.end() && csi->getTypeName() == typeid(ESM::Light).name())
|
if (csi != mInv.end() && csi->getTypeName() == typeid(ESM::Light).name())
|
||||||
{
|
{
|
||||||
soundId = csi->get<ESM::Light>()->mBase->mSound;
|
soundId = csi->get<ESM::Light>()->mBase->mSound;
|
||||||
|
|
|
@ -97,9 +97,6 @@ private:
|
||||||
Ogre::SharedPtr<WeaponAnimationTime> mWeaponAnimationTime;
|
Ogre::SharedPtr<WeaponAnimationTime> mWeaponAnimationTime;
|
||||||
|
|
||||||
float mAlpha;
|
float mAlpha;
|
||||||
bool mUnequipping;
|
|
||||||
bool mFirstEquip;
|
|
||||||
|
|
||||||
MWWorld::InventoryStore& mInv;
|
MWWorld::InventoryStore& mInv;
|
||||||
|
|
||||||
void updateNpcBase();
|
void updateNpcBase();
|
||||||
|
|
Loading…
Reference in a new issue