summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-07 23:21:44 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-07 23:26:24 +0200
commitda39624f1c694dbeaefc6762fd6867715cdb77bc (patch)
tree58d34e45cba86fba08992f522e34fc182f215eb2 /src/modelinfo
parentFix build on clang (diff)
downloadre3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.gz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.bz2
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.lz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.xz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.zst
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.zip
Diffstat (limited to '')
-rw-r--r--src/modelinfo/ModelIndices.h3
-rw-r--r--src/modelinfo/VehicleModelInfo.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index a8057d26..58aba733 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -257,6 +257,9 @@ enum
MI_VICE8,
MI_WFYG2 = 106, // last regular ped
MI_SPECIAL01 = 109,
+ MI_SPECIAL02 = 110,
+ MI_SPECIAL03 = 111,
+ MI_SPECIAL04 = 112,
MI_SPECIAL21 = 129,
MI_LAST_PED = MI_SPECIAL21,
diff --git a/src/modelinfo/VehicleModelInfo.h b/src/modelinfo/VehicleModelInfo.h
index d9a3f59a..d03ab9bf 100644
--- a/src/modelinfo/VehicleModelInfo.h
+++ b/src/modelinfo/VehicleModelInfo.h
@@ -137,7 +137,7 @@ public:
void SetVehicleComponentFlags(RwFrame *frame, uint32 flags);
void PreprocessHierarchy(void);
void GetWheelPosn(int32 n, CVector &pos);
- CVector GetFrontSeatPosn(void) { return m_positions[m_vehicleType == VEHICLE_TYPE_BOAT ? BOAT_POS_FRONTSEAT : CAR_POS_FRONTSEAT]; };
+ const CVector &GetFrontSeatPosn(void) { return m_vehicleType == VEHICLE_TYPE_BOAT ? m_positions[BOAT_POS_FRONTSEAT] : m_positions[CAR_POS_FRONTSEAT]; }
int32 ChooseComponent(void);
int32 ChooseSecondComponent(void);