changeset 15047:d75e147e98d4 draft

(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
author rubidium <rubidium@openttd.org>
date Sat, 17 Apr 2010 22:19:14 +0000
parents 01f8db5ece32
children c2279fa6ec2e
files src/openttd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -793,7 +793,7 @@
 	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;