From 14c5b87da459276fc9b438973faea6f63a2440b2 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 16 Feb 2011 03:48:13 +0000 Subject: [PATCH] - debugging out of synch (make bailout logic optional) --- 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 006af3ed..f41f3d73 100644 --- a/source/glest_game/ai/path_finder.cpp +++ b/source/glest_game/ai/path_finder.cpp @@ -185,7 +185,7 @@ TravelState PathFinder::findPath(Unit *unit, const Vec2i &finalPos, bool *wasStu //printf("#1 BAILOUT test unitid [%d]\n",unit->getId()); - bool useBailoutRadius = true; + bool useBailoutRadius = Config::getInstance().getBool("EnableBailoutPathfinding","true"); /* Command *command= unit->getCurrCommand(); if(command != NULL) {