diff options
author | aap <aap@papnet.eu> | 2019-08-11 22:14:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-11 22:14:25 +0200 |
commit | c17bbc62f592270b6a1cac323223689603a6120f (patch) | |
tree | 2f0c6d7eac06333b4f04eb3002700e4c3d067f34 /src/vehicles | |
parent | finished CPathFind (diff) | |
parent | P.e.d.s. and fixes (diff) | |
download | re3-c17bbc62f592270b6a1cac323223689603a6120f.tar re3-c17bbc62f592270b6a1cac323223689603a6120f.tar.gz re3-c17bbc62f592270b6a1cac323223689603a6120f.tar.bz2 re3-c17bbc62f592270b6a1cac323223689603a6120f.tar.lz re3-c17bbc62f592270b6a1cac323223689603a6120f.tar.xz re3-c17bbc62f592270b6a1cac323223689603a6120f.tar.zst re3-c17bbc62f592270b6a1cac323223689603a6120f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.h | 18 |
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; } } |