(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
authordominik
Fri, 17 Sep 2004 17:53:34 +0000
changeset 278 950c3ac6e649
parent 277 531aaf04cd3f
child 279 1d2f6b676e9f
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
misc_gui.c
--- a/misc_gui.c	Fri Sep 17 17:09:00 2004 +0000
+++ b/misc_gui.c	Fri Sep 17 17:53:34 2004 +0000
@@ -1116,6 +1116,9 @@
 		}
 		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 @@
 		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();