summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-25 22:59:55 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-25 22:59:55 +0200
commitad8e8f434117894f052ced019d8b96a7144d0583 (patch)
tree542b4a59aaa4ad489940f7b4933b36542d1686d1 /src/core
parentcranes fix (diff)
downloadre3-ad8e8f434117894f052ced019d8b96a7144d0583.tar
re3-ad8e8f434117894f052ced019d8b96a7144d0583.tar.gz
re3-ad8e8f434117894f052ced019d8b96a7144d0583.tar.bz2
re3-ad8e8f434117894f052ced019d8b96a7144d0583.tar.lz
re3-ad8e8f434117894f052ced019d8b96a7144d0583.tar.xz
re3-ad8e8f434117894f052ced019d8b96a7144d0583.tar.zst
re3-ad8e8f434117894f052ced019d8b96a7144d0583.zip
Diffstat (limited to '')
-rw-r--r--src/core/re3.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 9bc6400c..883caec5 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -160,6 +160,13 @@ TeleportToWaypoint(void)
}
#endif
+static void
+SwitchCarCollision(void)
+{
+ if (FindPlayerVehicle() && FindPlayerVehicle()->IsCar())
+ FindPlayerVehicle()->bUsesCollision = !FindPlayerVehicle()->bUsesCollision;
+}
+
static int engineStatus;
static void
SetEngineStatus(void)
@@ -362,6 +369,7 @@ DebugMenuPopulate(void)
#ifdef MENU_MAP
DebugMenuAddCmd("Debug", "Teleport to map waypoint", TeleportToWaypoint);
#endif
+ DebugMenuAddCmd("Debug", "Switch car collision", SwitchCarCollision);
DebugMenuAddVar("Debug", "Engine Status", &engineStatus, nil, 1, 0, 226, nil);
DebugMenuAddCmd("Debug", "Set Engine Status", SetEngineStatus);
DebugMenuAddCmd("Debug", "Fix Car", FixCar);