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

@ -24,5 +24,5 @@ public:
void PlayAnimation(const char *animName);
};
#ifndef PED_SKIN
static_assert(sizeof(CCutsceneHead) == 0x19C, "CCutsceneHead: error");
VALIDATE_SIZE(CCutsceneHead, 0x19C);
#endif

View File

@ -29,5 +29,5 @@ public:
void RemoveLighting(bool reset);
};
#ifndef PED_SKIN
static_assert(sizeof(CCutsceneObject) == 0x198, "CCutsceneObject: error");
VALIDATE_SIZE(CCutsceneObject, 0x198);
#endif

View File

@ -11,6 +11,4 @@ public:
CDummyObject(CObject *obj);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CDummyObject) == 0x68, "CDummyObject: error");
#endif
VALIDATE_SIZE(CDummyObject, 0x68);

View File

@ -98,6 +98,4 @@ public:
static void DeleteAllTempObjectsInArea(CVector point, float fRadius);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CObject) == 0x198, "CObject: error");
#endif
VALIDATE_SIZE(CObject, 0x198);

View File

@ -16,7 +16,7 @@ public:
uint8 m_nSpecialCollisionResponseCases;
bool m_bCameraToAvoidThisObject;
};
static_assert(sizeof(CObjectInfo) == 0x20, "CObjectInfo: error");
VALIDATE_SIZE(CObjectInfo, 0x20);
class CObjectData
{