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 9f1a648851
commit a30e617e5a
316 changed files with 1133 additions and 1267 deletions
+3 -3
View File
@@ -447,7 +447,7 @@ void daNpcF_Lookat_c::initCalc(fopAc_ac_c* i_actor, Mtx i_baseTransformMtx, cXyz
param_3[i].setall(0);
param_3[i].x = -cM_atan2s(local_90.y, local_90.absXZ());
#ifdef DEBUG
#if DEBUG
if (i_debug) {
f32 var_f31 = fabsf(cM_ssin(param_3[i].x));
OS_REPORT(">>>>>>>%d: sin(%d):%f\n", i, abs(param_3[i].x), var_f31);
@@ -1905,9 +1905,9 @@ BOOL daNpcF_chkDoBtnEqSpeak(fopAc_ac_c* i_actor_p) {
if (dComIfGp_getAttention()->LockonTarget(i) == i_actor_p &&
dComIfGp_getAttention()->getActionBtnB() &&
(dComIfGp_getAttention()->getActionBtnB()->mType == fopAc_attn_TALK_e
#if DEBUG
#if !PLATFORM_GCN
|| dComIfGp_getAttention()->getActionBtnB()->mType == fopAc_attn_UNK_4
#endif
#endif
))
{
ret = TRUE;