summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-17 22:19:14 +0000
committerrubidium <rubidium@openttd.org>2010-04-17 22:19:14 +0000
commit1647c2d50e1dfeb05507ddfb2b661896e72670ae (patch)
tree3e72c96055161ffe63f8cf5352782ee100fd3ce6 /src
parent1f963aed43db64490faa242cc2acce9f08c42f68 (diff)
downloadopenttd-1647c2d50e1dfeb05507ddfb2b661896e72670ae.tar.xz
(svn r19664) -Fix [FS#3749]: Crash of a dedicated server if the null blitter is overridden and (after a while) there is no company 0 on new year anymore
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 86d239819..2ba238509 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -793,7 +793,7 @@ static void MakeNewGameDone()
SettingsDisableElrail(_settings_game.vehicle.disable_elrails);
/* In a dedicated server, the server does not play */
- if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0) {
+ if (_network_dedicated || BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0) {
SetLocalCompany(COMPANY_SPECTATOR);
IConsoleCmdExec("exec scripts/game_start.scr 0");
return;