mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +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);
|
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||||
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(Config::getInstance().getBool("EnableFactionWorkerThreads","true") == true) {
|
if( game->getGameSettings()->getPathFinderType() == pfBasic &&
|
||||||
|
Config::getInstance().getBool("EnableFactionWorkerThreads","true") == true) {
|
||||||
if(workerThread != NULL) {
|
if(workerThread != NULL) {
|
||||||
workerThread->signalQuit();
|
workerThread->signalQuit();
|
||||||
if(workerThread->shutdownAndWait() == true) {
|
if(workerThread->shutdownAndWait() == true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user