Changeset - r278:5f4dc6843f7a
[Not reviewed]
master
0 1 0
dominik - 20 years ago 2004-09-17 17:53:34
dominik@openttd.org
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
misc_gui.c
Show inline comments
 
@@ -1116,6 +1116,9 @@ static void SaveLoadDlgWndProc(Window *w
 
		}
 
		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();
0 comments (0 inline, 0 general)