aboutsummaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorNikolay <nickvnuk@gmail.com>2021-08-07 18:47:28 +0300
committerGitHub <noreply@github.com>2021-08-07 18:47:28 +0300
commite947081622d337a5e22791691e5d0dbed56e0199 (patch)
tree4cf5012d9795a870caf8ec00ef69b1f9baf15210 /src/control/Script5.cpp
parentbec1cbc1cb8de15ebd056ed35b6d91b7f397e530 (diff)
parent80d00fe31a191e5c5151509109957ab1f0ecc5e7 (diff)
Merge pull request #1266 from Nick007J/miami
Mission replay
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