Fixed typos and made all assert functions optional

This commit is contained in:
bigbossbro08
2020-05-10 21:49:33 +06:00
parent af6e132b37
commit c798e1bacd
73 changed files with 110 additions and 184 deletions

View File

@ -90,6 +90,4 @@ public:
}
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(C2dEffect) == 0x34, "C2dEffect: error");
#endif
VALIDATE_SIZE(C2dEffect, 0x34);

View File

@ -39,9 +39,7 @@ struct CRegisteredCorona
void Update(void);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CRegisteredCorona) == 0x80, "CRegisteredCorona: error");
#endif
VALIDATE_SIZE(CRegisteredCorona, 0x80);
class CCoronas
{

View File

@ -21,9 +21,7 @@ public:
void Render(void);
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CFallingGlassPane, 0x70);
#endif
enum
{

View File

@ -91,6 +91,4 @@ public:
static void AddYardieDoorSmoke(CVector const &vecPos, CMatrix const &matMatrix);
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CParticle, 0x68);
#endif

View File

@ -13,7 +13,7 @@ public:
int8 fogType;
bool castExtraShadows;
};
static_assert(sizeof(CRegisteredPointLight) == 0x2C, "CRegisteredPointLight: error");
VALIDATE_SIZE(CRegisteredPointLight, 0x2C);
class CPointLights
{

View File

@ -124,9 +124,8 @@ public:
CPermanentShadow()
{ }
};
#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CPermanentShadow, 0x38);
#endif
class CPtrList;
class CAutomobile;

View File

@ -25,7 +25,7 @@ public:
void PushPeds(void);
};
static_assert(sizeof(CWaterCannon) == 412, "CWaterCannon: error");
VALIDATE_SIZE(CWaterCannon, 412);
class CWaterCannons
{