diff options
author | rubidium <rubidium@openttd.org> | 2011-08-24 12:11:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-24 12:11:10 +0000 |
commit | 9fe4b959ac90c91185ea0974f9a4d16091b0d3aa (patch) | |
tree | b37424d61a55f93d00cf4b385a28d0842ecc53aa /src/openttd.cpp | |
parent | fde0b4ce146455b4e5a4487973c21908485dba8c (diff) | |
download | openttd-9fe4b959ac90c91185ea0974f9a4d16091b0d3aa.tar.xz |
(svn r22818) -Fix [FS#4742] (r22796, rlongago): don't spawn threads for world generation and NewGRF scanning when using the dedicated or null video driver regardless of the used blitter
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index c7fc053f2..9d363f231 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -766,7 +766,7 @@ static void MakeNewGameDone() SettingsDisableElrail(_settings_game.vehicle.disable_elrails); /* In a dedicated server, the server does not play */ - if (_network_dedicated || BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0) { + if (!_video_driver->HasGUI()) { SetLocalCompany(COMPANY_SPECTATOR); IConsoleCmdExec("exec scripts/game_start.scr 0"); return; |