summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-01 11:54:05 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-07 19:24:01 +0200
commitc69edce8007178755d979f638852abb9359950c2 (patch)
treef041976b6ac5421582deae12e056b0d2e6e04ac2 /src/control/Script5.cpp
parentlcs specific hack (diff)
downloadre3-c69edce8007178755d979f638852abb9359950c2.tar
re3-c69edce8007178755d979f638852abb9359950c2.tar.gz
re3-c69edce8007178755d979f638852abb9359950c2.tar.bz2
re3-c69edce8007178755d979f638852abb9359950c2.tar.lz
re3-c69edce8007178755d979f638852abb9359950c2.tar.xz
re3-c69edce8007178755d979f638852abb9359950c2.tar.zst
re3-c69edce8007178755d979f638852abb9359950c2.zip
Diffstat (limited to 'src/control/Script5.cpp')
-rw-r--r--src/control/Script5.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index 8544f604..b0605574 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -1383,8 +1383,10 @@ void CRunningScript::DoDeatharrestCheck()
if (!pPlayer->IsRestartingAfterDeath() && !pPlayer->IsRestartingAfterArrest())
return;
#ifdef MISSION_REPLAY
- if (AllowMissionReplay != 0)
+ if (AllowMissionReplay != 7 && AllowMissionReplay != 0)
return;
+ if (AllowMissionReplay == 7)
+ AllowMissionReplay = 0;
if (CanAllowMissionReplay())
AllowMissionReplay = 1;
#endif