diff options
author | aap <aap@papnet.eu> | 2020-06-09 15:43:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 15:43:25 +0200 |
commit | b07b1f0b519813c93a95b7baa2928c4d42c23af7 (patch) | |
tree | 552a3d776e1938d917901e7f2d46eb6db4af8f7a /src/vehicles/Automobile.h | |
parent | Merge branch 'master' into miami (diff) | |
parent | Peds, bike center of mass and reversing fixes (diff) | |
download | re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar.gz re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar.bz2 re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar.lz re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar.xz re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.tar.zst re3-b07b1f0b519813c93a95b7baa2928c4d42c23af7.zip |
Diffstat (limited to 'src/vehicles/Automobile.h')
-rw-r--r-- | src/vehicles/Automobile.h | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/src/vehicles/Automobile.h b/src/vehicles/Automobile.h index 186ed646..6c13c117 100644 --- a/src/vehicles/Automobile.h +++ b/src/vehicles/Automobile.h @@ -7,30 +7,6 @@ class CObject; -enum eCarNodes -{ - CAR_WHEEL_RF = 1, - CAR_WHEEL_RM, - CAR_WHEEL_RB, - CAR_WHEEL_LF, - CAR_WHEEL_LM, - CAR_WHEEL_LB, - CAR_BUMP_FRONT, - CAR_BUMP_REAR, - CAR_WING_RF, - CAR_WING_RR, - CAR_DOOR_RF, - CAR_DOOR_RR, - CAR_WING_LF, - CAR_WING_LR, - CAR_DOOR_LF, - CAR_DOOR_LR, - CAR_BONNET, - CAR_BOOT, - CAR_WINDSCREEN, - NUM_CAR_NODES, -}; - // These are used for all the wheel arrays // DON'T confuse with VEHWHEEL, which are vehicle components enum { @@ -40,13 +16,6 @@ enum { CARWHEEL_REAR_RIGHT }; -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 { @@ -196,19 +165,4 @@ public: static const uint32 nSaveStructSize; static void SetAllTaxiLights(bool set); -}; - -inline uint8 GetCarDoorFlag(int32 carnode) { - switch (carnode) { - case CAR_DOOR_LF: - return CAR_DOOR_FLAG_LF; - case CAR_DOOR_LR: - return CAR_DOOR_FLAG_LR; - case CAR_DOOR_RF: - return CAR_DOOR_FLAG_RF; - case CAR_DOOR_RR: - return CAR_DOOR_FLAG_RR; - default: - return CAR_DOOR_FLAG_UNKNOWN; - } -} +};
\ No newline at end of file |