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
+2 -6
View File
@@ -239,9 +239,7 @@ int daObjRgate_c::Create() {
l_cull_box.max.y, l_cull_box.max.z);
if (dComIfG_Bgsp().Regist(mpBgW, this)) {
#ifdef DEBUG
OSReport_Error("キコルの門:BG登録失敗しました\n");
#endif
OS_REPORT_ERROR("キコルの門:BG登録失敗しました\n");
return 0;
} else {
for (u16 i = 0; i < mpGateModel->getModelData()->getJointNum(); i++) {
@@ -847,9 +845,7 @@ int daObjRgate_c::Draw() {
int daObjRgate_c::Delete() {
if (mpBgW != NULL && mpBgW->ChkUsed()) {
if (dComIfG_Bgsp().Release(mpBgW)) {
#ifdef DEBUG
OSReport("Release Error\n");
#endif
OS_REPORT("Release Error\n");
}
}