mirror of https://github.com/OpenTTD/OpenTTD
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
parent
345003d49f
commit
9d1bf52ce3
|
@ -1116,6 +1116,9 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WE_DESTROY:
|
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;
|
_query_string_active = false;
|
||||||
FiosFreeSavegameList();
|
FiosFreeSavegameList();
|
||||||
break;
|
break;
|
||||||
|
@ -1189,6 +1192,10 @@ void ShowSaveLoadDialog(int mode)
|
||||||
strcpy(_edit_str_buf, "UNNAMED");
|
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();
|
BuildFileList();
|
||||||
|
|
||||||
ResetObjectToPlace();
|
ResetObjectToPlace();
|
||||||
|
|
Loading…
Reference in New Issue