summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-26 20:38:37 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-26 20:38:37 +0200
commitbb2e601e13bfdfae697cd0188604bb4481769285 (patch)
tree253fdf6bf532ffd362ad5fdeaac7dfddb43f1afe /src/vehicles
parentreturn bridge, crane and fix structures in fluff.h (diff)
parentFix coronas reflections (diff)
downloadre3-bb2e601e13bfdfae697cd0188604bb4481769285.tar
re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.gz
re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.bz2
re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.lz
re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.xz
re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.zst
re3-bb2e601e13bfdfae697cd0188604bb4481769285.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Bike.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vehicles/Bike.h b/src/vehicles/Bike.h
index cee670a3..885fe1b0 100644
--- a/src/vehicles/Bike.h
+++ b/src/vehicles/Bike.h
@@ -134,8 +134,24 @@ public:
void ReduceHornCounter(void);
};
+// These functions and function names are made up
+
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:
+ return CAR_DOOR_FLAG_RF | CAR_DOOR_FLAG_LF;
+ default:
+ return CAR_DOOR_FLAG_UNKNOWN;
+ }
+}
+
+// for m_nGettingOutFlags
+inline int8 GetBikeDoorFlagInclJumpInFromFront(int32 carnode) {
+ switch (carnode) {
case CAR_DOOR_RR:
case CAR_DOOR_LR:
return CAR_DOOR_FLAG_RR | CAR_DOOR_FLAG_LR;