summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-08-10 17:15:22 +0200
committereray orçunus <erayorcunus@gmail.com>2019-08-11 19:31:36 +0200
commitbe1c7b0761c2de0362a47ecfff616a8931b54805 (patch)
tree2f0c6d7eac06333b4f04eb3002700e4c3d067f34 /src/vehicles
parentfinished CPathFind (diff)
downloadre3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar.gz
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar.bz2
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar.lz
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar.xz
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.tar.zst
re3-be1c7b0761c2de0362a47ecfff616a8931b54805.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/vehicles/Automobile.h b/src/vehicles/Automobile.h
index e6b64e6e..4dd3a087 100644
--- a/src/vehicles/Automobile.h
+++ b/src/vehicles/Automobile.h
@@ -58,6 +58,14 @@ enum eBombType
CARBOMB_ONIGNITIONACTIVE,
};
+enum {
+ CAR_DOOR_FLAG_UNKNOWN = 0x0,
+ CAR_DOOR_FLAG_LF = 0x1,
+ CAR_DOOR_FLAG_LR = 0x2,
+ CAR_DOOR_FLAG_RF = 0x4,
+ CAR_DOOR_FLAG_RR = 0x8
+};
+
class CAutomobile : public CVehicle
{
public:
@@ -189,14 +197,14 @@ static_assert(sizeof(CAutomobile) == 0x5A8, "CAutomobile: error");
inline uint8 GetCarDoorFlag(int32 carnode) {
switch (carnode) {
case CAR_DOOR_LF:
- return 1;
+ return CAR_DOOR_FLAG_LF;
case CAR_DOOR_LR:
- return 2;
+ return CAR_DOOR_FLAG_LR;
case CAR_DOOR_RF:
- return 4;
+ return CAR_DOOR_FLAG_RF;
case CAR_DOOR_RR:
- return 8;
+ return CAR_DOOR_FLAG_RR;
default:
- return 0;
+ return CAR_DOOR_FLAG_UNKNOWN;
}
}