summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/render/2dEffect.h3
-rw-r--r--src/render/Coronas.h3
-rw-r--r--src/render/Glass.h2
-rw-r--r--src/render/Particle.h4
-rw-r--r--src/render/ParticleMgr.h6
-rw-r--r--src/render/Shadows.h11
6 files changed, 27 insertions, 2 deletions
diff --git a/src/render/2dEffect.h b/src/render/2dEffect.h
index a24a3f4f..8c583799 100644
--- a/src/render/2dEffect.h
+++ b/src/render/2dEffect.h
@@ -89,4 +89,7 @@ public:
}
}
};
+
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(C2dEffect) == 0x34, "C2dEffect: error");
+#endif \ No newline at end of file
diff --git a/src/render/Coronas.h b/src/render/Coronas.h
index 4b49e40e..d2e79079 100644
--- a/src/render/Coronas.h
+++ b/src/render/Coronas.h
@@ -38,7 +38,10 @@ struct CRegisteredCorona
void Update(void);
};
+
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CRegisteredCorona) == 0x80, "CRegisteredCorona: error");
+#endif
class CCoronas
{
diff --git a/src/render/Glass.h b/src/render/Glass.h
index 51c5aae9..0c715c27 100644
--- a/src/render/Glass.h
+++ b/src/render/Glass.h
@@ -21,7 +21,9 @@ public:
void Render(void);
};
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CFallingGlassPane, 0x70);
+#endif
enum
{
diff --git a/src/render/Particle.h b/src/render/Particle.h
index b71dc717..ed1528d2 100644
--- a/src/render/Particle.h
+++ b/src/render/Particle.h
@@ -91,4 +91,6 @@ public:
static void AddYardieDoorSmoke(CVector const &vecPos, CMatrix const &matMatrix);
};
-VALIDATE_SIZE(CParticle, 0x68); \ No newline at end of file
+#ifdef CHECK_STRUCT_SIZES
+VALIDATE_SIZE(CParticle, 0x68);
+#endif \ No newline at end of file
diff --git a/src/render/ParticleMgr.h b/src/render/ParticleMgr.h
index 70845a56..42e3f132 100644
--- a/src/render/ParticleMgr.h
+++ b/src/render/ParticleMgr.h
@@ -64,8 +64,10 @@ struct tParticleSystemData
RwRaster **m_ppRaster;
CParticle *m_pParticles;
};
-VALIDATE_SIZE(tParticleSystemData, 0x88);
+#ifdef CHECK_STRUCT_SIZES
+VALIDATE_SIZE(tParticleSystemData, 0x88);
+#endif
class cParticleSystemMgr
{
@@ -125,6 +127,8 @@ public:
void RangeCheck(tParticleSystemData *pData) { }
};
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(cParticleSystemMgr, 0x2420);
+#endif
extern cParticleSystemMgr mod_ParticleSystemManager; \ No newline at end of file
diff --git a/src/render/Shadows.h b/src/render/Shadows.h
index 39be343e..8e89024d 100644
--- a/src/render/Shadows.h
+++ b/src/render/Shadows.h
@@ -51,7 +51,10 @@ public:
CStoredShadow()
{ }
};
+
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CStoredShadow, 0x30);
+#endif
class CPolyBunch
{
@@ -65,7 +68,10 @@ public:
CPolyBunch()
{ }
};
+
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CPolyBunch, 0x6C);
+#endif
class CStaticShadow
{
@@ -93,7 +99,10 @@ public:
void Free();
};
+
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CStaticShadow, 0x40);
+#endif
class CPermanentShadow
{
@@ -115,7 +124,9 @@ public:
CPermanentShadow()
{ }
};
+#ifdef CHECK_STRUCT_SIZES
VALIDATE_SIZE(CPermanentShadow, 0x38);
+#endif
class CPtrList;
class CAutomobile;