mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 16:54:42 +00:00
(svn r24974) -Fix [FS#5279]: Honour pause_on_newgame setting when running as a dedicated server.
This commit is contained in:
parent
3b4f4fe0b6
commit
5bffc704f9
@ -889,6 +889,7 @@ static void MakeNewGameDone()
|
||||
/* In a dedicated server, the server does not play */
|
||||
if (!_video_driver->HasGUI()) {
|
||||
SetLocalCompany(COMPANY_SPECTATOR);
|
||||
if (_settings_client.gui.pause_on_newgame) DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE);
|
||||
IConsoleCmdExec("exec scripts/game_start.scr 0");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user