summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-04 12:15:33 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-04 12:15:33 +0000
commitbb89e98ec25e531fb6bcd028f355eb2f3af4a712 (patch)
treee5b3f9c5d766c0050482a7b8c83b408e123f194c
parentdebabbbd9aac8ac119d8d09a907ae9f97a7eb471 (diff)
downloadopenttd-bb89e98ec25e531fb6bcd028f355eb2f3af4a712.tar.xz
(svn r12336) -Fix [FS#1733]: Don't pause/unpause the game when showing load/save windows when the game is paused due to missing GRFs.
-rw-r--r--src/misc_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index ee121488d..9b6434d02 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1634,7 +1634,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
case WE_DESTROY:
/* pause is only used in single-player, non-editor mode, non menu mode */
if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
- DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
+ if (_pause_game >= 0) DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
}
FiosFreeSavegameList();
ClrBit(_no_scroll, SCROLL_SAVE);
@@ -1726,7 +1726,7 @@ void ShowSaveLoadDialog(SaveLoadDialogMode mode)
/* pause is only used in single-player, non-editor mode, non-menu mode. It
* will be unpaused in the WE_DESTROY event handler. */
if (_game_mode != GM_MENU && !_networking && _game_mode != GM_EDITOR) {
- DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
+ if (_pause_game >= 0) DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
}
BuildFileList();