1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:23:53 +00:00

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)
, 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;

View file

@ -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
};