summaryrefslogtreecommitdiff
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-29 12:56:50 +0300
committerSergeanur <s.anureev@yandex.ua>2020-06-29 12:56:50 +0300
commitb26eec5dafc7720d2c8e61db7dd6da29442cab94 (patch)
tree4dfc58239c4555d4d4e6d0b327b65b7dab6cae65 /src/control/Script.h
parent3370ae04cbb051aa5f853de64c8f7956530a4ea7 (diff)
parent7b22b7e2af691a78741199f19397248903b6c2b2 (diff)
Merge remote-tracking branch 'origin/master' into miami
# Conflicts: # src/audio/AudioLogic.cpp # src/audio/soundlist.h # src/control/Script.cpp # src/control/ScriptCommands.h # src/core/Cam.cpp # src/core/Camera.cpp # src/core/Camera.h # src/core/Frontend.cpp # src/core/Frontend.h # src/core/Game.cpp # src/core/MenuScreens.cpp # src/core/Pad.cpp # src/core/Pad.h # src/core/config.h # src/entities/Entity.cpp # src/render/Credits.cpp # src/render/Fluff.cpp # src/render/Hud.cpp # src/render/MBlur.cpp # src/render/Timecycle.cpp # src/skel/glfw/glfw.cpp # src/skel/win/win.cpp # src/text/Text.cpp
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 9b2de580..3577b401 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -354,6 +354,7 @@ private:
static bool IsPlayerStopped(CPlayerInfo*);
static bool IsVehicleStopped(CVehicle*);
+ static void PrintListSizes();
static void ReadObjectNamesFromScript();
static void UpdateObjectIndices();
static void ReadMultiScriptFileOffsetsFromScript();
@@ -391,7 +392,7 @@ public:
enum {
- MAX_STACK_DEPTH = 6,
+ MAX_STACK_DEPTH = 6, // 4 PS2
NUM_LOCAL_VARS = 16,
NUM_TIMERS = 2
};
@@ -503,6 +504,11 @@ private:
bool CanAllowMissionReplay();
#endif
+#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
+ int CollectParameterForDebug(char* buf, bool& var);
+ void GetStoredParameterForDebug(char* buf);
+#endif
+
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
bool ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal) {