summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-23 16:39:30 +0200
committeraap <aap@papnet.eu>2019-07-23 16:39:30 +0200
commite9cafe340a16c489c5f6874066b9836d70bd0091 (patch)
treed4dd7107784bd7cdf6ef055287bc6deffd35f925 /src/core
parentMerge pull request #161 from ShFil119/audio5 (diff)
downloadre3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.gz
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.bz2
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.lz
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.xz
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.tar.zst
re3-e9cafe340a16c489c5f6874066b9836d70bd0091.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/re3.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 67b9095e..851baeaf 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -158,6 +158,17 @@ ToggleComedy(void)
veh->bComedyControls = !veh->bComedyControls;
}
+static void
+PlaceOnRoad(void)
+{
+ CVehicle *veh = FindPlayerVehicle();
+ if(veh == nil)
+ return;
+
+ if(veh->IsCar())
+ ((CAutomobile*)veh)->PlaceOnRoadProperly();
+}
+
static const char *carnames[] = {
"landstal", "idaho", "stinger", "linerun", "peren", "sentinel", "patriot", "firetruk", "trash", "stretch", "manana", "infernus", "blista", "pony",
"mule", "cheetah", "ambulan", "fbicar", "moonbeam", "esperant", "taxi", "kuruma", "bobcat", "mrwhoop", "bfinject", "corpse", "police", "enforcer",
@@ -241,6 +252,7 @@ DebugMenuPopulate(void)
DebugMenuAddCmd("Debug", "Fix Car", FixCar);
DebugMenuAddCmd("Debug", "Toggle Comedy Controls", ToggleComedy);
+ DebugMenuAddCmd("Debug", "Place Car on Road", PlaceOnRoad);
DebugMenuAddVarBool8("Debug", "Show Ped Road Groups", (int8*)&gbShowPedRoadGroups, nil);
DebugMenuAddVarBool8("Debug", "Show Car Road Groups", (int8*)&gbShowCarRoadGroups, nil);