- defaulted scenario's to regular pathfinder while allowfor for a property setting to change it to routeplanner

This commit is contained in:
Mark Vejvoda 2010-08-11 21:55:08 +00:00
parent 760becb7ad
commit f79d34b4a4

View File

@ -239,7 +239,8 @@ void MenuStateScenario::loadGameSettings(const ScenarioInfo *scenarioInfo, GameS
gameSettings->setFactionCount(factionCount);
gameSettings->setFogOfWar(scenarioInfo->fogOfWar);
gameSettings->setPathFinderType(pfRoutePlanner);
gameSettings->setPathFinderType(static_cast<PathFinderType>(Config::getInstance().getInt("ScenarioPathFinderType",intToStr(pfBasic).c_str())));
}
ControlType MenuStateScenario::strToControllerType(const string &str){