mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- disable faction threads when user selects route planner pathfinder (fixes current crash)
This commit is contained in:
parent
7b14d860c9
commit
678fca2aad
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user