summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-26 23:25:12 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-26 23:25:12 +0200
commitec1d14971c9bb1d751c0256093483d621dd719b8 (patch)
treeee3196f8abd70e1b01df0cb38b0ebe1888f98cd0 /src/control/Script.h
parentupdated librw (diff)
downloadre3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar.gz
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar.bz2
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar.lz
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar.xz
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.tar.zst
re3-ec1d14971c9bb1d751c0256093483d621dd719b8.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index acab66cc..743fad99 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -372,6 +372,9 @@ private:
friend class CRunningScript;
friend class CHud;
friend void CMissionCleanup::Process();
+#ifdef FIX_BUGS
+ friend void RetryMission(int, int);
+#endif
};
@@ -479,6 +482,10 @@ private:
void CharInAreaCheckCommand(int32, uint32*);
void CarInAreaCheckCommand(int32, uint32*);
+#ifdef MISSION_REPLAY
+ bool CanAllowMissionReplay();
+#endif
+
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
bool ThisIsAValidRandomPed(uint32 pedtype) {
@@ -502,3 +509,15 @@ private:
}
}
};
+
+#ifdef MISSION_REPLAY
+extern int AllowMissionReplay;
+extern uint32 WaitForMissionActivate;
+extern uint32 WaitForSave;
+extern uint32 MissionStartTime;
+extern int missionRetryScriptIndex;
+extern bool doingMissionRetry;
+
+uint32 AddExtraDeathDelay();
+void RetryMission(int, int);
+#endif