summaryrefslogtreecommitdiffstats
path: root/src/save/GenericGameStorage.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-08 15:57:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-08 15:57:37 +0200
commit63046894b099598c41096651a9816ee3adc032a4 (patch)
tree9595d7e98f521d579c92df00db51bcd595d31328 /src/save/GenericGameStorage.cpp
parentfixed tab (diff)
downloadre3-63046894b099598c41096651a9816ee3adc032a4.tar
re3-63046894b099598c41096651a9816ee3adc032a4.tar.gz
re3-63046894b099598c41096651a9816ee3adc032a4.tar.bz2
re3-63046894b099598c41096651a9816ee3adc032a4.tar.lz
re3-63046894b099598c41096651a9816ee3adc032a4.tar.xz
re3-63046894b099598c41096651a9816ee3adc032a4.tar.zst
re3-63046894b099598c41096651a9816ee3adc032a4.zip
Diffstat (limited to 'src/save/GenericGameStorage.cpp')
-rw-r--r--src/save/GenericGameStorage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index f51f8233..798aeb7e 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -1153,7 +1153,9 @@ void DisplaySaveResult(int unk, char* name)
bool SaveGameForPause(int type)
{
- if (AllowMissionReplay != 0 || type != 3 && WaitForSave > CTimer::GetTimeInMilliseconds())
+ if (AllowMissionReplay != MISSION_RETRY_STAGE_NORMAL)
+ return false;
+ if (type != SAVE_TYPE_QUICKSAVE_FOR_MISSION_REPLAY && WaitForSave > CTimer::GetTimeInMilliseconds())
return false;
WaitForSave = 0;
if (gGameState != GS_PLAYING_GAME || CTheScripts::IsPlayerOnAMission() || CStats::LastMissionPassedName[0] == '\0') {