summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:14:21 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:14:21 +0200
commit478bdcc1ca041bccf791c3aa7dbbc1a04da72454 (patch)
tree589cfc6708f54f58e10d5c8774fcb244c79b46e3 /src/control/Script5.cpp
parentMerge branch 'master' into miami (diff)
parentsmall refactoring (diff)
downloadre3-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/control/Script5.cpp')
-rw-r--r--src/control/Script5.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index 87260603..e9f0967e 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -1380,12 +1380,12 @@ void CRunningScript::DoDeatharrestCheck()
if (!pPlayer->IsRestartingAfterDeath() && !pPlayer->IsRestartingAfterArrest())
return;
#ifdef MISSION_REPLAY
- if (AllowMissionReplay != 7 && AllowMissionReplay != 0)
+ if (AllowMissionReplay != MISSION_RETRY_STAGE_WAIT_FOR_TIMER_AFTER_RESTART && AllowMissionReplay != MISSION_RETRY_STAGE_NORMAL)
return;
- if (AllowMissionReplay == 7)
- AllowMissionReplay = 0;
+ if (AllowMissionReplay == MISSION_RETRY_STAGE_WAIT_FOR_TIMER_AFTER_RESTART)
+ AllowMissionReplay = MISSION_RETRY_STAGE_NORMAL;
if (CanAllowMissionReplay())
- AllowMissionReplay = 1;
+ AllowMissionReplay = MISSION_RETRY_STAGE_WAIT_FOR_SCRIPT_TO_TERMINATE;
#endif
script_assert(m_nStackPointer > 0);
while (m_nStackPointer > 1)