diff options
author | rubidium <rubidium@openttd.org> | 2009-12-22 08:34:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-22 08:34:40 +0000 |
commit | c816281e091abc6a46835df74572bf99fdf39798 (patch) | |
tree | 48924e35196db6a5a04413a021375e702cfc806e | |
parent | 8d8bd3d45fc899618fbda5e3ff1f1df0d1ad638b (diff) | |
download | openttd-c816281e091abc6a46835df74572bf99fdf39798.tar.xz |
(svn r18598) -Fix [FS#3402]: also cancel the save-pause when loading a savegame as scenario
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 46999783c..300f14462 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1023,6 +1023,8 @@ void SwitchToMode(SwitchMode new_mode) 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); |