mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 21:06:58 +00:00
(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
This commit is contained in:
parent
1f963aed43
commit
1647c2d50e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user