- disable a cache that i think causes out of synch

This commit is contained in:
Mark Vejvoda 2011-02-12 01:13:52 +00:00
parent 87f21b71d6
commit d056486ec4
1 changed files with 1 additions and 1 deletions

View File

@ -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<UnitPathBasic *>(path);
if(basicPathFinder != NULL && basicPathFinder->getLastPathCacheQueueCount() > 0) {