mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
3907ac518b
commit
9674ff71de
src
|
@ -1634,7 +1634,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
|
||||||
case WE_DESTROY:
|
case WE_DESTROY:
|
||||||
/* pause is only used in single-player, non-editor mode, non menu mode */
|
/* pause is only used in single-player, non-editor mode, non menu mode */
|
||||||
if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
|
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();
|
FiosFreeSavegameList();
|
||||||
ClrBit(_no_scroll, SCROLL_SAVE);
|
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
|
/* pause is only used in single-player, non-editor mode, non-menu mode. It
|
||||||
* will be unpaused in the WE_DESTROY event handler. */
|
* will be unpaused in the WE_DESTROY event handler. */
|
||||||
if (_game_mode != GM_MENU && !_networking && _game_mode != GM_EDITOR) {
|
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();
|
BuildFileList();
|
||||||
|
|
Loading…
Reference in New Issue