mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 04:31:37 -04:00
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:
@@ -259,9 +259,7 @@ int daObjKGate_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;
|
||||
}
|
||||
|
||||
@@ -336,7 +334,7 @@ int daObjKGate_c::create1st() {
|
||||
phase_state =
|
||||
MoveBGCreate(l_arcName[mNameArg], l_gateDzbIdx[mNameArg], NULL, heap_size, NULL);
|
||||
if (phase_state == cPhs_ERROR_e) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
OSReport("KGATE PARAM:%x\n", fopAcM_GetParam(this));
|
||||
#endif
|
||||
return phase_state;
|
||||
@@ -956,9 +954,7 @@ int daObjKGate_c::Draw() {
|
||||
int daObjKGate_c::Delete() {
|
||||
if (mpBgW != NULL && mpBgW->ChkUsed()) {
|
||||
if (dComIfG_Bgsp().Release(mpBgW)) {
|
||||
#ifdef DEBUG
|
||||
OSReport("Release Error\n");
|
||||
#endif
|
||||
OS_REPORT("Release Error\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user