Mercurial > hg > openttd
changeset 20042:26fd3e92ba75 draft
(svn r24974) -Fix [FS#5279]: Honour pause_on_newgame setting when running as a dedicated server.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Tue, 05 Feb 2013 21:41:32 +0000 |
parents | ce1c3223e878 |
children | 89d10ade3434 |
files | src/openttd.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -889,6 +889,7 @@ /* 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; }