summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-09-17 17:53:34 +0000
committerdominik <dominik@openttd.org>2004-09-17 17:53:34 +0000
commit9d1bf52ce37badc1d52c4798282c776b375516fc (patch)
tree4ea72b2cc2ddd2c22cc4ccfa08f3b3ebd9ef9ed0
parent345003d49f5efe6bfe174c872895d0d145f98a70 (diff)
downloadopenttd-9d1bf52ce37badc1d52c4798282c776b375516fc.tar.xz
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
-rw-r--r--misc_gui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a0b5e1eac..a111ccbe2 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1116,6 +1116,9 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
}
break;
case WE_DESTROY:
+ // pause is only used in single-player, non-editor mode
+ if(!_networking && (_game_mode != GM_EDITOR))
+ DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
_query_string_active = false;
FiosFreeSavegameList();
break;
@@ -1189,6 +1192,10 @@ void ShowSaveLoadDialog(int mode)
strcpy(_edit_str_buf, "UNNAMED");
}
+ // pause is only used in single-player, non-editor mode
+ if(_game_mode != GM_MENU && !_networking && (_game_mode != GM_EDITOR))
+ DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
+
BuildFileList();
ResetObjectToPlace();