From d056486ec49e4d69862dac51beaebb876502668c Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 12 Feb 2011 01:13:52 +0000 Subject: [PATCH] - disable a cache that i think causes out of synch --- source/glest_game/ai/path_finder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/ai/path_finder.cpp b/source/glest_game/ai/path_finder.cpp index 11b469f1..6a16e3af 100644 --- a/source/glest_game/ai/path_finder.cpp +++ b/source/glest_game/ai/path_finder.cpp @@ -356,7 +356,7 @@ TravelState PathFinder::aStar(Unit *unit, const Vec2i &targetPos, bool inBailout UnitPathInterface *path= unit->getPath(); // Check the previous path find cache for the unit to see if its good to // use - const bool tryLastPathCache = true; + const bool tryLastPathCache = false; if(tryLastPathCache == true && path != NULL) { UnitPathBasic *basicPathFinder = dynamic_cast(path); if(basicPathFinder != NULL && basicPathFinder->getLastPathCacheQueueCount() > 0) {