summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-23 22:29:56 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-24 00:54:37 +0200
commitdbc458a4d762e48023c4ad69f6bae4b0258c94ce (patch)
treeff9c407775ddb0d12cd120143c73f8ad0d46b5e7 /src/vehicles
parentAdd .gitattributes for better language stats (diff)
downloadre3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar.gz
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar.bz2
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar.lz
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar.xz
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.tar.zst
re3-dbc458a4d762e48023c4ad69f6bae4b0258c94ce.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;