(svn r24974) -Fix [FS#5279]: Honour pause_on_newgame setting when running as a dedicated server.

This commit is contained in:
peter1138 2013-02-05 21:41:32 +00:00
parent 3b4f4fe0b6
commit 5bffc704f9
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}