From 6a1435c49e7ed6a83bb92801ed6c7303872eb78a Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sun, 20 Apr 2014 17:59:08 +1000 Subject: [PATCH] Remove rotation check that was freezing NPC's. --- apps/openmw/mwmechanics/aiwander.cpp | 3 +-- apps/openmw/mwmechanics/aiwander.hpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index d552e045d..ad94be0eb 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -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; diff --git a/apps/openmw/mwmechanics/aiwander.hpp b/apps/openmw/mwmechanics/aiwander.hpp index 2ed1af3be..fe14abeb6 100644 --- a/apps/openmw/mwmechanics/aiwander.hpp +++ b/apps/openmw/mwmechanics/aiwander.hpp @@ -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 };