- attempt disabling threaded faction pathfinder precache

This commit is contained in:
Mark Vejvoda 2011-04-18 06:51:10 +00:00
parent 4bce94fbbb
commit 1b68053397

View File

@ -247,7 +247,7 @@ void Faction::init(
texture->load(data_path + "data/core/faction_textures/faction"+intToStr(startLocationIndex)+".tga"); texture->load(data_path + "data/core/faction_textures/faction"+intToStr(startLocationIndex)+".tga");
if( game->getGameSettings()->getPathFinderType() == pfBasic && if( game->getGameSettings()->getPathFinderType() == pfBasic &&
Config::getInstance().getBool("EnableFactionWorkerThreads","true") == true) { Config::getInstance().getBool("EnableFactionWorkerThreads","false") == true) {
if(workerThread != NULL) { if(workerThread != NULL) {
workerThread->signalQuit(); workerThread->signalQuit();
if(workerThread->shutdownAndWait() == true) { if(workerThread->shutdownAndWait() == true) {