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

@ -17,6 +17,5 @@ public:
virtual bool GetIsATreadable(void) { return false; }
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CBuilding) == 0x64, "CBuilding: error");
#endif
VALIDATE_SIZE(CBuilding, 0x64);

View File

@ -16,6 +16,5 @@ public:
static void operator delete(void*, size_t);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CDummy) == 0x68, "CDummy: error");
#endif
VALIDATE_SIZE(CDummy, 0x68);

View File

@ -173,6 +173,4 @@ public:
static void AddSteamsFromGround(CPtrList& list);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CEntity) == 0x64, "CEntity: error");
#endif
VALIDATE_SIZE(CEntity, 0x64);

View File

@ -161,6 +161,4 @@ public:
bool CheckCollision_SimpleCar(void);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CPhysical) == 0x128, "CPhysical: error");
#endif
VALIDATE_SIZE(CPhysical, 0x128);

View File

@ -13,6 +13,5 @@ public:
bool GetIsATreadable(void) { return true; }
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CTreadable) == 0x94, "CTreadable: error");
#endif
VALIDATE_SIZE(CTreadable, 0x94);