diff options
| author | Max Roncace <me@caseif.net> | 2025-12-11 18:34:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-11 15:34:16 -0800 |
| commit | 8ad2d661a2c33a3c3e60d2a7089c9f5463ae2ab0 (patch) | |
| tree | e60bbe0b605fa455fc8bdabb8b38dccf5ff0e629 /src/f_pc/f_pc_base.cpp | |
| parent | ae4ad9f47779db56713bca41f6535bea31ec5490 (diff) | |
Clean up conditional compilation a bit (#2943)
Diffstat (limited to 'src/f_pc/f_pc_base.cpp')
| -rw-r--r-- | src/f_pc/f_pc_base.cpp | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/src/f_pc/f_pc_base.cpp b/src/f_pc/f_pc_base.cpp index 49406aee04..d59864a4ea 100644 --- a/src/f_pc/f_pc_base.cpp +++ b/src/f_pc/f_pc_base.cpp @@ -13,10 +13,7 @@ #include "f_pc/f_pc_pause.h" #include "f_pc/f_pc_profile.h" #include "f_pc/f_pc_debug_sv.h" - -#if VERSION == VERSION_SHIELD_DEBUG #include "Z2AudioLib/Z2AudioMgr.h" -#endif BOOL fpcBs_Is_JustOfType(int i_typeA, int i_typeB) { if (i_typeB == i_typeA) { @@ -94,21 +91,21 @@ int fpcBs_Delete(base_process_class* i_proc) { i_proc->type = 0; cMl::free(i_proc); - #if VERSION == VERSION_SHIELD_DEBUG - // JSUList<Z2SoundObjBase>* allList = Z2GetAudioMgr()->getAllList(); - - // for (JSUListIterator<Z2SoundObjBase> it(allList->getFirst()); it != allList->getEnd(); it++) { - // static JSULink<Z2SoundObjBase>* DUMMY_FILL_IT = NULL; - // static Z2SoundObjBase* DUMMY_FILL_P = NULL; - // if (it == DUMMY_FILL_IT || it.getObject() == DUMMY_FILL_P) { - // const char* stageName = dStage_getName2(profname, 0); - // if (stageName == NULL) { - // JUT_PANIC_F(341, "Sound Object Not Delete !! <%d>\n", profname); - // } else { - // JUT_PANIC_F(345, "Sound Object Not Delete !! <%s>\n", stageName); - // } - // } - // } + #if DEBUG + JSUList<Z2SoundObjBase>* allList = Z2GetAudioMgr()->getAllList(); + + for (JSUListIterator<Z2SoundObjBase> it(allList->getFirst()); it != allList->getEnd(); it++) { + static JSULink<Z2SoundObjBase>* DUMMY_FILL_IT = NULL; + static Z2SoundObjBase* DUMMY_FILL_P = NULL; + if (it == DUMMY_FILL_IT || it.getObject() == DUMMY_FILL_P) { + const char* stageName = dStage_getName2(profname, 0); + if (stageName == NULL) { + JUT_PANIC_F(341, "Sound Object Not Delete !! <%d>\n", profname); + } else { + JUT_PANIC_F(345, "Sound Object Not Delete !! <%s>\n", stageName); + } + } + } #endif } } |
