summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Bike.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-08 23:56:01 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-09 00:29:55 +0200
commitdba2b052a64bc4f468e94fbf078eff7a0cb27ae4 (patch)
tree7cb2889a80594fb9a26184846475dbbdaf90306f /src/vehicles/Bike.h
parentbla (diff)
downloadre3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar.gz
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar.bz2
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar.lz
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar.xz
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.tar.zst
re3-dba2b052a64bc4f468e94fbf078eff7a0cb27ae4.zip
Diffstat (limited to 'src/vehicles/Bike.h')
-rw-r--r--src/vehicles/Bike.h14
1 files changed, 14 insertions, 0 deletions
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