From f59e918a3b697e119a224b86c7ac2edd591e978f Mon Sep 17 00:00:00 2001
From: dteviot <dteviot@gmail.com>
Date: Sat, 29 Aug 2015 17:34:33 +1200
Subject: [PATCH] removed useless code.

zTurn ignores turns < 0.0087 radians.
---
 apps/openmw/mwmechanics/aipackage.cpp | 2 --
 apps/openmw/mwmechanics/aiwander.cpp  | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/apps/openmw/mwmechanics/aipackage.cpp b/apps/openmw/mwmechanics/aipackage.cpp
index c18ee5ceb..36843663e 100644
--- a/apps/openmw/mwmechanics/aipackage.cpp
+++ b/apps/openmw/mwmechanics/aipackage.cpp
@@ -109,8 +109,6 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, ESM::Pathgrid::Po
             {
                 movement.mPosition[0] = 1;
                 movement.mPosition[1] = 1;
-                // change the angle a bit, too
-                zTurn(actor, mPathFinder.getZAngleToNext(pos.pos[0] + 1, pos.pos[1]));
             }
         }
         else { //Not stuck, so reset things
diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp
index 8f27a2048..01d8125b3 100644
--- a/apps/openmw/mwmechanics/aiwander.cpp
+++ b/apps/openmw/mwmechanics/aiwander.cpp
@@ -437,9 +437,6 @@ namespace MWMechanics
                 //       but doesn't seem to do that?
                 actor.getClass().getMovementSettings(actor).mPosition[0] = 1;
                 actor.getClass().getMovementSettings(actor).mPosition[1] = 0.1f;
-                // change the angle a bit, too
-                const ESM::Position& pos = actor.getRefData().getPosition();
-                zTurn(actor, storage.mPathFinder.getZAngleToNext(pos.pos[0] + 1, pos.pos[1]));
             }
             mStuckCount++;  // TODO: maybe no longer needed
         }