Remove rotation check that was freezing NPC's.

This commit is contained in:
cc9cii 2014-04-20 17:59:08 +10:00
parent e17fab891d
commit 6a1435c49e
2 changed files with 1 additions and 3 deletions

View file

@ -36,7 +36,6 @@ namespace MWMechanics
, mChance(0) , mChance(0)
, mRotate(false) , mRotate(false)
, mTargetAngle(0) , mTargetAngle(0)
, mOriginalAngle(0)
, mSaidGreeting(false) , mSaidGreeting(false)
{ {
for(unsigned short counter = 0; counter < mIdle.size(); counter++) for(unsigned short counter = 0; counter < mIdle.size(); counter++)
@ -433,7 +432,7 @@ namespace MWMechanics
} }
// Check if idle animation finished // Check if idle animation finished
if(!checkIdle(actor, mPlayedIdle) && !mRotate) if(!checkIdle(actor, mPlayedIdle))
{ {
mPlayedIdle = 0; mPlayedIdle = 0;
mIdleNow = false; mIdleNow = false;

View file

@ -76,7 +76,6 @@ namespace MWMechanics
// the z rotation angle (degrees) we want to reach // the z rotation angle (degrees) we want to reach
// used every frame when mRotate is true // used every frame when mRotate is true
float mTargetAngle; float mTargetAngle;
float mOriginalAngle;
bool mRotate; bool mRotate;
float mReaction; // update some actions infrequently float mReaction; // update some actions infrequently
}; };