diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 16:14:21 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 16:14:21 +0200 |
commit | 478bdcc1ca041bccf791c3aa7dbbc1a04da72454 (patch) | |
tree | 589cfc6708f54f58e10d5c8774fcb244c79b46e3 /src/save/GenericGameStorage.cpp | |
parent | Merge branch 'master' into miami (diff) | |
parent | small refactoring (diff) | |
download | re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.gz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.bz2 re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.lz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.xz re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.tar.zst re3-478bdcc1ca041bccf791c3aa7dbbc1a04da72454.zip |
Diffstat (limited to 'src/save/GenericGameStorage.cpp')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index c42ae738..c696726b 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -1176,16 +1176,16 @@ void DisplaySaveResult(int unk, char* name) bool SaveGameForPause(int type) { - if (AllowMissionReplay != 0 && AllowMissionReplay != 7) { + if (AllowMissionReplay != MISSION_RETRY_STAGE_NORMAL && AllowMissionReplay != MISSION_RETRY_STAGE_WAIT_FOR_TIMER_AFTER_RESTART) { debug("SaveGameForPause failed during AllowMissionReplay %d", AllowMissionReplay); return false; } - if (type != 3 && WaitForSave > CTimer::GetTimeInMilliseconds()) { + if (type != SAVE_TYPE_QUICKSAVE_FOR_MISSION_REPLAY && WaitForSave > CTimer::GetTimeInMilliseconds()) { debug("SaveGameForPause failed WaitForSave"); return false; } WaitForSave = 0; - if (gGameState != GS_PLAYING_GAME || (CTheScripts::bAlreadyRunningAMissionScript && type != 5)) { + if (gGameState != GS_PLAYING_GAME || (CTheScripts::bAlreadyRunningAMissionScript && type != SAVE_TYPE_QUICKSAVE_FOR_SCRIPT_ON_A_MISSION)) { DisplaySaveResult(3, CStats::LastMissionPassedName); return false; } |