diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-01 11:54:05 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-07 19:24:01 +0200 |
commit | c69edce8007178755d979f638852abb9359950c2 (patch) | |
tree | f041976b6ac5421582deae12e056b0d2e6e04ac2 /src/control/Script.h | |
parent | lcs specific hack (diff) | |
download | re3-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/Script.h')
-rw-r--r-- | src/control/Script.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 8b54f28f..8c014a0f 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -653,6 +653,12 @@ public: static void SetObjectiveForAllPedsInCollective(int, eObjective); #endif +#ifdef USE_MISSION_REPLAY_OVERRIDE_FOR_NON_MOBILE_SCRIPT + static bool MissionSupportsMissionReplay(int index) + { + return index >= 3 && index <= 35 || index >= 51 && index <= 65 || index >= 67 && index <= 74 || index >= 83 && index <= 87; + } +#endif static bool IsFortStauntonDestroyed() { return FSDestroyedFlag && *(int32*)&ScriptSpace[FSDestroyedFlag] == 1; } }; @@ -665,7 +671,6 @@ VALIDATE_SIZE(uStackReturnValue, 4); extern int scriptToLoad; #endif #ifdef MISSION_REPLAY -static_assert(false, "Mission replay is not supported"); extern int AllowMissionReplay; extern uint32 WaitForMissionActivate; extern uint32 WaitForSave; @@ -676,6 +681,11 @@ extern bool gbTryingPorn4Again; extern int IsInAmmunation; extern int MissionSkipLevel; +#ifdef USE_MISSION_REPLAY_OVERRIDE_FOR_NON_MOBILE_SCRIPT +extern bool UsingMobileScript; +extern bool AlreadySavedGame; +#endif + uint32 AddExtraDeathDelay(); void RetryMission(int, int); #endif |