# HG changeset patch # User peter1138 # Date 1204632933 0 # Node ID a2b146a9be68e761cb311f6f67e9f0bde1f04c26 # Parent b37d9f4017e5ff339cb0e57385b298559ce8df28 (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. diff -r b37d9f4017e5 -r a2b146a9be68 src/misc_gui.cpp --- a/src/misc_gui.cpp Tue Mar 04 12:14:34 2008 +0000 +++ b/src/misc_gui.cpp Tue Mar 04 12:15:33 2008 +0000 @@ -1634,7 +1634,7 @@ 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 @@ /* 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();