Remove rotation check that was freezing NPC's.

actorid
cc9cii 11 years ago
parent e17fab891d
commit 6a1435c49e

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

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

Loading…
Cancel
Save