Various debug conditional compilation cleanup (#2915)

* Global: Define DEBUG as 0 if not already defined

* Clean up DEBUG-guarded code
This commit is contained in:
Max Roncace
2025-12-06 16:34:47 -05:00
committed by GitHub
parent 00e599304a
commit cf492884ea
316 changed files with 1133 additions and 1267 deletions
+12 -5
View File
@@ -274,11 +274,14 @@ int daNpc_Doc_c::Draw() {
mdlData_p->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
}
#if DEBUG
return draw(chkAction(&daNpc_Doc_c::test), FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
#else
return draw(FALSE, FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
#endif
return draw(
#if DEBUG
chkAction(&daNpc_Doc_c::test),
#else
FALSE,
#endif
FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE
);
}
int daNpc_Doc_c::createHeapCallBack(fopAc_ac_c* i_this) {
@@ -827,6 +830,10 @@ int daNpc_Doc_c::talk(void* param_0) {
return 0;
}
int daNpc_Doc_c::test(void* i_this) {
// DEBUG NONMATCHING
}
static int daNpc_Doc_Create(void* i_this) {
return ((daNpc_Doc_c*)i_this)->create();
}