summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index ef6c87151..2ff8f3674 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -25,6 +25,7 @@
#include "settings_type.h"
#include "newgrf_storage.h"
#include "water.h"
+#include "blitter/factory.hpp"
#include "tilehighlight_func.h"
#include "saveload/saveload.h"
@@ -298,7 +299,7 @@ void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y)
_gw.thread = NULL;
}
- if (_network_dedicated ||
+ if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0 ||
(_gw.thread = ThreadObject::New(&_GenerateWorld, NULL)) == NULL) {
DEBUG(misc, 1, "Cannot create genworld thread, reverting to single-threaded mode");
_gw.threaded = false;