summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorNikolay <nickvnuk@gmail.com>2021-08-07 17:47:28 +0200
committerGitHub <noreply@github.com>2021-08-07 17:47:28 +0200
commite947081622d337a5e22791691e5d0dbed56e0199 (patch)
tree4cf5012d9795a870caf8ec00ef69b1f9baf15210 /src/control/Script5.cpp
parentCVehicle fixes and cleanup (diff)
parentmore cherry-pick fix (diff)
downloadre3-e947081622d337a5e22791691e5d0dbed56e0199.tar
re3-e947081622d337a5e22791691e5d0dbed56e0199.tar.gz
re3-e947081622d337a5e22791691e5d0dbed56e0199.tar.bz2
re3-e947081622d337a5e22791691e5d0dbed56e0199.tar.lz
re3-e947081622d337a5e22791691e5d0dbed56e0199.tar.xz
re3-e947081622d337a5e22791691e5d0dbed56e0199.tar.zst
re3-e947081622d337a5e22791691e5d0dbed56e0199.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 f65724c2..fc258f0c 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -1379,8 +1379,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