diff options
| author | Max Roncace <me@caseif.net> | 2025-12-06 16:34:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-06 13:34:47 -0800 |
| commit | a30e617e5a9b8264053788429a587ee1763eae73 (patch) | |
| tree | d4f3dbf04e754e5741ba35b1ba1083851be87597 /src/d/actor/d_a_warp_bug.cpp | |
| parent | 9f1a6488512209cc1acc612aa390e9a4686037ca (diff) | |
Various debug conditional compilation cleanup (#2915)
* Global: Define DEBUG as 0 if not already defined
* Clean up DEBUG-guarded code
Diffstat (limited to 'src/d/actor/d_a_warp_bug.cpp')
| -rw-r--r-- | src/d/actor/d_a_warp_bug.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/d/actor/d_a_warp_bug.cpp b/src/d/actor/d_a_warp_bug.cpp index 3a021961b8..ea16657ddd 100644 --- a/src/d/actor/d_a_warp_bug.cpp +++ b/src/d/actor/d_a_warp_bug.cpp @@ -53,15 +53,11 @@ static int daWarpBug_Draw(daWarpBug_c* i_this) { } int daWarpBug_c::draw() { -#ifdef DEBUG +#if DEBUG daPy_py_c* player_p = (daPy_py_c*)dComIfGp_getPlayer(0); if (!player_p->checkMidnaWarp()) { -#endif - field_0x57c = 0; return 1; - -#ifdef DEBUG } cLib_chaseS(&field_0x57c, 255, 25); @@ -94,20 +90,22 @@ int daWarpBug_c::draw() { mpBtk->entry(modelData); mDoExt_modelUpdateDL(mpModel); dComIfGd_setList(); +#else + field_0x57c = 0; +#endif return 1; -#endif } int daWarpBug_c::execute() { -#ifdef DEBUG +#if DEBUG daPy_py_c* player_p = (daPy_py_c*)dComIfGp_getPlayer(0); #endif mDoMtx_stack_c::copy(mpModel->getBaseTRMtx()); mDoMtx_stack_c::multVecZero(¤t.pos); -#ifdef DEBUG +#if DEBUG if (player_p->checkMidnaWarp()) { mpBrk->play(); mpBtk->play(); |
