From dba2b052a64bc4f468e94fbf078eff7a0cb27ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Tue, 9 Jun 2020 00:56:01 +0300 Subject: Peds, bike center of mass and reversing fixes --- src/vehicles/Bike.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/vehicles/Bike.h') diff --git a/src/vehicles/Bike.h b/src/vehicles/Bike.h index 34d2074a..a13e4c56 100644 --- a/src/vehicles/Bike.h +++ b/src/vehicles/Bike.h @@ -133,3 +133,17 @@ public: void SetupModelNodes(void); void ReduceHornCounter(void); }; + +inline int8 GetBikeDoorFlag(int32 carnode) { + switch (carnode) { + case CAR_DOOR_RR: + case CAR_DOOR_LR: + return CAR_DOOR_FLAG_RR | CAR_DOOR_FLAG_LR; + case CAR_DOOR_RF: + case CAR_DOOR_LF: + case CAR_WINDSCREEN: + return CAR_DOOR_FLAG_RF | CAR_DOOR_FLAG_LF; + default: + return CAR_DOOR_FLAG_UNKNOWN; + } +} \ No newline at end of file -- cgit v1.2.3