summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2013-02-05 21:41:32 +0000
committerpeter1138 <peter1138@openttd.org>2013-02-05 21:41:32 +0000
commit5bffc704f9c5fd465ca196f2986683b1de9fadfb (patch)
tree70898188c978efd33bea9eec037b3166943e701c /src
parent3b4f4fe0b6d2da93d15b2d1015f068ebeba1943e (diff)
downloadopenttd-5bffc704f9c5fd465ca196f2986683b1de9fadfb.tar.xz
(svn r24974) -Fix [FS#5279]: Honour pause_on_newgame setting when running as a dedicated server.
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index be83d4e78..ffecade0a 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -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;
}