diff options
author | aap <aap@papnet.eu> | 2020-05-10 19:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 19:42:04 +0200 |
commit | 05021ed1e1e5374b38f9ce2912c310c04d358f6d (patch) | |
tree | b9d849f3fc61246f0038e5bec53ef8f61b040b83 /src/objects | |
parent | some fixes and cosmetic changes (diff) | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar.gz re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar.bz2 re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar.lz re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar.xz re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.tar.zst re3-05021ed1e1e5374b38f9ce2912c310c04d358f6d.zip |
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/CutsceneHead.h | 2 | ||||
-rw-r--r-- | src/objects/CutsceneObject.h | 2 | ||||
-rw-r--r-- | src/objects/DummyObject.h | 3 | ||||
-rw-r--r-- | src/objects/Object.h | 3 | ||||
-rw-r--r-- | src/objects/ObjectData.h | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/src/objects/CutsceneHead.h b/src/objects/CutsceneHead.h index 0a70353d..c931eb01 100644 --- a/src/objects/CutsceneHead.h +++ b/src/objects/CutsceneHead.h @@ -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 diff --git a/src/objects/CutsceneObject.h b/src/objects/CutsceneObject.h index 9c4036bf..407adcc7 100644 --- a/src/objects/CutsceneObject.h +++ b/src/objects/CutsceneObject.h @@ -29,5 +29,5 @@ public: void RemoveLighting(bool reset); }; #ifndef PED_SKIN -static_assert(sizeof(CCutsceneObject) == 0x198, "CCutsceneObject: error"); +VALIDATE_SIZE(CCutsceneObject, 0x198); #endif diff --git a/src/objects/DummyObject.h b/src/objects/DummyObject.h index d4dce609..d6f88335 100644 --- a/src/objects/DummyObject.h +++ b/src/objects/DummyObject.h @@ -10,4 +10,5 @@ public: CDummyObject(void) {} CDummyObject(CObject *obj); }; -static_assert(sizeof(CDummyObject) == 0x68, "CDummyObject: error"); + +VALIDATE_SIZE(CDummyObject, 0x68); diff --git a/src/objects/Object.h b/src/objects/Object.h index 80b9015c..79589dc9 100644 --- a/src/objects/Object.h +++ b/src/objects/Object.h @@ -97,4 +97,5 @@ public: static void DeleteAllTempObjects(); static void DeleteAllTempObjectsInArea(CVector point, float fRadius); }; -static_assert(sizeof(CObject) == 0x198, "CObject: error"); + +VALIDATE_SIZE(CObject, 0x198); diff --git a/src/objects/ObjectData.h b/src/objects/ObjectData.h index e3a5c1bd..e25c1aeb 100644 --- a/src/objects/ObjectData.h +++ b/src/objects/ObjectData.h @@ -16,7 +16,7 @@ public: uint8 m_nSpecialCollisionResponseCases; bool m_bCameraToAvoidThisObject; }; -static_assert(sizeof(CObjectInfo) == 0x20, "CObjectInfo: error"); +VALIDATE_SIZE(CObjectInfo, 0x20); class CObjectData { |