summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:17:20 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-08 16:17:20 +0200
commit947f67dfb770669bae81920a0a1525b0666bfe9c (patch)
tree0597056b93949af95e2bdeb2d90ca90712aad758
parentsmall refactoring (diff)
downloadre3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar.gz
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar.bz2
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar.lz
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar.xz
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.tar.zst
re3-947f67dfb770669bae81920a0a1525b0666bfe9c.zip
-rw-r--r--src/control/Script.cpp2
-rw-r--r--src/control/Script.h2
-rw-r--r--src/core/Frontend.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index bcfc6078..4501c27f 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -677,7 +677,7 @@ void CTheScripts::Process()
break;
case MISSION_RETRY_STAGE_WAIT_FOR_MENU:
AllowMissionReplay = MISSION_RETRY_STAGE_WAIT_FOR_USER;
- RetryMission(0, 0);
+ RetryMission(MISSION_RETRY_TYPE_SUGGEST_TO_PLAYER);
break;
case MISSION_RETRY_STAGE_START_RESTARTING:
AllowMissionReplay = MISSION_RETRY_STAGE_WAIT_FOR_TIMER_AFTER_RESTART;
diff --git a/src/control/Script.h b/src/control/Script.h
index 7b0f9a2e..eedf17d4 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -605,7 +605,7 @@ extern int missionRetryScriptIndex;
extern bool doingMissionRetry;
uint32 AddExtraDeathDelay();
-void RetryMission(int, int);
+void RetryMission(int, int unk = 0);
enum {
MISSION_RETRY_TYPE_SUGGEST_TO_PLAYER = 0,
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index e7a15f66..8358298f 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -4175,7 +4175,7 @@ CMenuManager::Process(void)
if (m_nCurrScreen == MENUPAGE_LOADING_IN_PROGRESS) {
#ifdef MISSION_REPLAY
if (doingMissionRetry) {
- RetryMission(2, 0);
+ RetryMission(MISSION_RETRY_TYPE_BEGIN_RESTARTING);
m_nCurrSaveSlot = SLOT_COUNT;
doingMissionRetry = false;
}
@@ -5186,7 +5186,7 @@ CMenuManager::ProcessButtonPresses(void)
case MENUACTION_UNK114:
doingMissionRetry = false;
RequestFrontEndShutDown();
- RetryMission(2, 0);
+ RetryMission(MISSION_RETRY_TYPE_BEGIN_RESTARTING);
return;
#endif
#ifdef CUSTOM_FRONTEND_OPTIONS