- disable faction threads when user selects route planner pathfinder (fixes current crash)

This commit is contained in:
Mark Vejvoda 2011-04-03 06:18:21 +00:00
parent 7b14d860c9
commit 678fca2aad
1 changed files with 2 additions and 1 deletions

View File

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