diff options
author | frosch <frosch@openttd.org> | 2010-06-05 15:22:46 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-05 15:22:46 +0000 |
commit | c5921a91ea39fc72ff7bf5a8f49e26f41c7baffb (patch) | |
tree | cb5335b1e72ab859fe1df9e56e875e0cdc354bc1 /src/openttd.cpp | |
parent | 9e53f1e004bf8e65f268b8854a6eb08229e3f2ed (diff) | |
download | openttd-c5921a91ea39fc72ff7bf5a8f49e26f41c7baffb.tar.xz |
(svn r19934) -Fix [FS#3857]: When 'pause on new game' is set, pause the game before CleanupGeneration() to avoid conflicts with concurrent GUI code.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 6e8e44973..554e7dbf1 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -820,6 +820,8 @@ static void MakeNewGameDone() } #endif /* ENABLE_NETWORK */ + if (_settings_client.gui.pause_on_newgame) DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE); + MarkWholeScreenDirty(); } |