mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 01:05:50 +02:00
- disable a cache that i think causes out of synch
This commit is contained in:
@@ -356,7 +356,7 @@ TravelState PathFinder::aStar(Unit *unit, const Vec2i &targetPos, bool inBailout
|
|||||||
UnitPathInterface *path= unit->getPath();
|
UnitPathInterface *path= unit->getPath();
|
||||||
// Check the previous path find cache for the unit to see if its good to
|
// Check the previous path find cache for the unit to see if its good to
|
||||||
// use
|
// use
|
||||||
const bool tryLastPathCache = true;
|
const bool tryLastPathCache = false;
|
||||||
if(tryLastPathCache == true && path != NULL) {
|
if(tryLastPathCache == true && path != NULL) {
|
||||||
UnitPathBasic *basicPathFinder = dynamic_cast<UnitPathBasic *>(path);
|
UnitPathBasic *basicPathFinder = dynamic_cast<UnitPathBasic *>(path);
|
||||||
if(basicPathFinder != NULL && basicPathFinder->getLastPathCacheQueueCount() > 0) {
|
if(basicPathFinder != NULL && basicPathFinder->getLastPathCacheQueueCount() > 0) {
|
||||||
|
Reference in New Issue
Block a user