summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 15:54:37 +0200
committerbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 15:54:37 +0200
commitaf6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 (patch)
tree76d91c02ec3701babef050228de8a40fe2306dcd /src/audio
parentSmall unification (diff)
downloadre3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.gz
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.bz2
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.lz
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.xz
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.zst
re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioCollision.h6
-rw-r--r--src/audio/AudioManager.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/audio/AudioCollision.h b/src/audio/AudioCollision.h
index 324bab0e..e8711f9a 100644
--- a/src/audio/AudioCollision.h
+++ b/src/audio/AudioCollision.h
@@ -20,7 +20,9 @@ public:
// no methods
};
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(cAudioCollision) == 40, "cAudioCollision: error");
+#endif
class cAudioCollisionManager
{
@@ -35,4 +37,6 @@ public:
void AddCollisionToRequestedQueue();
};
-static_assert(sizeof(cAudioCollisionManager) == 852, "cAudioCollisionManager: error"); \ No newline at end of file
+#ifdef CHECK_STRUCT_SIZES
+static_assert(sizeof(cAudioCollisionManager) == 852, "cAudioCollisionManager: error");
+#endif \ No newline at end of file
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 0d0c5d91..5f00eac4 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -52,7 +52,9 @@ public:
uint8 m_AudioEvents;
};
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(tAudioEntity) == 40, "tAudioEntity: error");
+#endif
class tPedComment
{
@@ -135,7 +137,9 @@ public:
float m_fVelocityChange;
};
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(cVehicleParams) == 0x18, "cVehicleParams: error");
+#endif
enum {
/*