diff options
author | aap <aap@papnet.eu> | 2019-07-23 16:39:30 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-23 16:39:30 +0200 |
commit | e9cafe340a16c489c5f6874066b9836d70bd0091 (patch) | |
tree | d4dd7107784bd7cdf6ef055287bc6deffd35f925 /src/core | |
parent | Merge pull request #161 from ShFil119/audio5 (diff) | |
download | re3-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.cpp | 12 |
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); |