mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 06:26:22 +00:00
Fixed typos and made all assert functions optional
This commit is contained in:
@ -197,9 +197,7 @@ public:
|
||||
static void SetAllTaxiLights(bool set);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CAutomobile) == 0x5A8, "CAutomobile: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CAutomobile, 0x5A8);
|
||||
|
||||
inline uint8 GetCarDoorFlag(int32 carnode) {
|
||||
switch (carnode) {
|
||||
|
@ -72,9 +72,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CBoat) == 0x484, "CBoat: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CBoat, 0x484);
|
||||
|
||||
extern float MAX_WAKE_LENGTH;
|
||||
extern float MIN_WAKE_INTERVAL;
|
||||
|
@ -72,9 +72,7 @@ public:
|
||||
float GetHeightToDropoffHeight() { return m_fDropoffHeight + (m_bIsCrusher ? 7.0f : 2.0f); }
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CCrane) == 128, "CCrane: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CCrane, 128);
|
||||
|
||||
class CCranes
|
||||
{
|
||||
|
@ -96,6 +96,5 @@ public:
|
||||
static void ActivateHeli(bool activate);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CHeli) == 0x33C, "CHeli: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CHeli, 0x33C);
|
||||
|
||||
|
@ -64,9 +64,7 @@ public:
|
||||
static bool HasDropOffCesnaBeenShotDown(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CPlane) == 0x29C, "CPlane: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CPlane, 0x29C);
|
||||
|
||||
extern float LandingPoint;
|
||||
extern float TakeOffPoint;
|
||||
|
@ -92,6 +92,4 @@ public:
|
||||
static void UpdateTrains(void);
|
||||
};
|
||||
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CTrain) == 0x2E4, "CTrain: error");
|
||||
#endif
|
||||
VALIDATE_SIZE(CTrain, 0x2E4);
|
||||
|
@ -291,8 +291,8 @@ public:
|
||||
static bool m_bDisableMouseSteering;
|
||||
};
|
||||
|
||||
VALIDATE_SIZE(CVehicle, 0x288);
|
||||
#ifdef CHECK_STRUCT_SIZES
|
||||
static_assert(sizeof(CVehicle) == 0x288, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_pCurGroundEntity) == 0x1E0, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_nAlarmState) == 0x1A0, "CVehicle: error");
|
||||
static_assert(offsetof(CVehicle, m_nLastWeaponDamage) == 0x228, "CVehicle: error");
|
||||
|
Reference in New Issue
Block a user