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:
parent
e17fab891d
commit
6a1435c49e
2 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue