summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-14 23:26:19 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-14 23:26:19 +0200
commit2d976827ddf6fb43e64bf34555cf9175f867494b (patch)
tree8225f31e2a57e07ce411ff2b6a4acb55c1307671 /src/control/Script.h
parentPeds, mission switcher & fixes (diff)
downloadre3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar.gz
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar.bz2
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar.lz
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar.xz
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.tar.zst
re3-2d976827ddf6fb43e64bf34555cf9175f867494b.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 45475e6e..9b2de580 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -375,6 +375,11 @@ private:
static void RemoveScriptTextureDictionary();
static void RemoveThisPed(CPed* pPed);
+#ifdef MISSION_SWITCHER
+public:
+ static void SwitchToMission(int32 mission);
+#endif
+
friend class CRunningScript;
friend class CHud;
friend void CMissionCleanup::Process();
@@ -526,6 +531,8 @@ private:
bool CheckDamagedWeaponType(int32 actual, int32 type);
static bool ThisIsAValidRandomCop(int32 mi, bool cop, bool swat, bool fbi, bool army, bool miami);
+
+ friend class CTheScripts;
};
#ifdef USE_DEBUG_SCRIPT_LOADER
@@ -545,8 +552,4 @@ void RetryMission(int, int);
#ifdef USE_DEBUG_SCRIPT_LOADER
extern int scriptToLoad;
-#endif
-
-#ifdef MISSION_SWITCHER
-extern int switchMissionTo;
#endif \ No newline at end of file