summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 17:49:33 +0200
committerbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 17:49:33 +0200
commitc798e1bacdaabaf140ff3904948fd7cec46c09bb (patch)
treeef6d50874117bcc819b90dcd231d74f23fa0108d /src/audio/AudioManager.h
parentdefined out asserts. (diff)
downloadre3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.gz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.bz2
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.lz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.xz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.zst
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 5f00eac4..3e20b993 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -35,7 +35,7 @@ public:
int8 m_nVolumeChange;
};
-static_assert(sizeof(tSound) == 92, "tSound: error");
+VALIDATE_SIZE(tSound, 92);
class CPhysical;
class CAutomobile;
@@ -52,9 +52,7 @@ public:
uint8 m_AudioEvents;
};
-#ifdef CHECK_STRUCT_SIZES
-static_assert(sizeof(tAudioEntity) == 40, "tAudioEntity: error");
-#endif
+VALIDATE_SIZE(tAudioEntity, 40);
class tPedComment
{
@@ -67,7 +65,7 @@ public:
int8 m_nProcess;
};
-static_assert(sizeof(tPedComment) == 28, "tPedComment: error");
+VALIDATE_SIZE(tPedComment, 28);
class cPedComments
{
@@ -82,7 +80,7 @@ public:
void Process();
};
-static_assert(sizeof(cPedComments) == 1164, "cPedComments: error");
+VALIDATE_SIZE(cPedComments, 1164);
class CEntity;
@@ -98,8 +96,7 @@ public:
int32 m_nMissionAudioCounter;
bool m_bIsPlayed;
};
-
-static_assert(sizeof(cMissionAudio) == 32, "cMissionAudio: error");
+VALIDATE_SIZE(cMissionAudio, 32);
// name made up
class cAudioScriptObjectManager
@@ -137,9 +134,7 @@ public:
float m_fVelocityChange;
};
-#ifdef CHECK_STRUCT_SIZES
-static_assert(sizeof(cVehicleParams) == 0x18, "cVehicleParams: error");
-#endif
+VALIDATE_SIZE(cVehicleParams, 0x18);
enum {
/*