From cae948df96ec8ba1b3e073634ae0391e35468a84 Mon Sep 17 00:00:00 2001 From: terrorfisch Date: Wed, 8 Oct 2014 23:09:50 +0200 Subject: [PATCH] removed unecessary PathFinders --- apps/openmw/mwmechanics/aiescort.hpp | 2 +- apps/openmw/mwmechanics/aitravel.cpp | 3 +-- apps/openmw/mwmechanics/aitravel.hpp | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwmechanics/aiescort.hpp b/apps/openmw/mwmechanics/aiescort.hpp index ecf4475e0..4ee019b76 100644 --- a/apps/openmw/mwmechanics/aiescort.hpp +++ b/apps/openmw/mwmechanics/aiescort.hpp @@ -48,7 +48,7 @@ namespace MWMechanics float mMaxDist; float mRemainingDuration; // In seconds - PathFinder mPathFinder; + //PathFinder mPathFinder; int mCellX; int mCellY; }; diff --git a/apps/openmw/mwmechanics/aitravel.cpp b/apps/openmw/mwmechanics/aitravel.cpp index e5d58a563..959784983 100644 --- a/apps/openmw/mwmechanics/aitravel.cpp +++ b/apps/openmw/mwmechanics/aitravel.cpp @@ -17,7 +17,7 @@ namespace MWMechanics { AiTravel::AiTravel(float x, float y, float z) - : mX(x),mY(y),mZ(z),mPathFinder() + : mX(x),mY(y),mZ(z) , mCellX(std::numeric_limits::max()) , mCellY(std::numeric_limits::max()) { @@ -25,7 +25,6 @@ namespace MWMechanics AiTravel::AiTravel(const ESM::AiSequence::AiTravel *travel) : mX(travel->mData.mX), mY(travel->mData.mY), mZ(travel->mData.mZ) - , mPathFinder() , mCellX(std::numeric_limits::max()) , mCellY(std::numeric_limits::max()) { diff --git a/apps/openmw/mwmechanics/aitravel.hpp b/apps/openmw/mwmechanics/aitravel.hpp index 3b12e9433..c2c33c2cf 100644 --- a/apps/openmw/mwmechanics/aitravel.hpp +++ b/apps/openmw/mwmechanics/aitravel.hpp @@ -39,7 +39,6 @@ namespace MWMechanics int mCellX; int mCellY; - PathFinder mPathFinder; }; }