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) {