diff options
author | rubidium <rubidium@openttd.org> | 2010-04-17 22:19:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-17 22:19:14 +0000 |
commit | 1647c2d50e1dfeb05507ddfb2b661896e72670ae (patch) | |
tree | 3e72c96055161ffe63f8cf5352782ee100fd3ce6 /src | |
parent | 1f963aed43db64490faa242cc2acce9f08c42f68 (diff) | |
download | openttd-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.cpp | 2 |
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; |