Mercurial > hg > openttd
changeset 14055:1d37529b4d5a draft
(svn r18598) -Fix [FS#3402]: also cancel the save-pause when loading a savegame as scenario
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 22 Dec 2009 08:34:40 +0000 |
parents | ed7bd40a291b |
children | 3eede17e9c25 |
files | src/openttd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1023,6 +1023,8 @@ if (SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_EDITOR, NO_DIRECTORY)) { SetLocalCompany(OWNER_NONE); _settings_newgame.game_creation.starting_year = _cur_year; + /* Cancel the saveload pausing */ + DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE); } else { SetDParamStr(0, GetSaveLoadErrorString()); ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, 0, 0);