summaryrefslogtreecommitdiff
path: root/src/vehicles/Bike.h
diff options
context:
space:
mode:
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