diff --git a/src/mods/spawner.c b/src/mods/spawner.c index 142fb6c0..db328d82 100644 --- a/src/mods/spawner.c +++ b/src/mods/spawner.c @@ -302,13 +302,21 @@ void Spawner_ObjKill(void) { } // Use this function to add code that eases your documentation work! -Spawner_Playground(void) { +void Spawner_Playground(void) { Player* player = &gPlayer[0]; player->mercyTimer = 100; gLaserStrength[0] = 2; gBombCount[0] = 9; gLifeCount[0] = 9; + +#if 0 + if (gControllerPress[0].button & L_JPAD) { + gArwingSpeed -= 50; + } else if (gControllerPress[0].button & R_JPAD) { + gArwingSpeed += 50; + } +#endif } void Spawner(void) { diff --git a/src/overlays/ovl_i3/fox_zo.c b/src/overlays/ovl_i3/fox_zo.c index 9612fbd7..3abc5dcb 100644 --- a/src/overlays/ovl_i3/fox_zo.c +++ b/src/overlays/ovl_i3/fox_zo.c @@ -3271,14 +3271,13 @@ void Zoness_801986FC(ZoSarumarine* this, s32 arg1, f32 xOff, f32 yOff, f32 zOff, } } -#ifdef AVOID_UB - if (i < ARRAY_COUNT(gActors)) { -#else +#ifndef AVOID_UB // @Bug: checking out of bounds + // If this passes the boss kills himself. if (i >= ARRAY_COUNT(gActors)) { -#endif actor245->obj.status = OBJ_FREE; } +#endif } void Zoness_801989FC(ZoSarumarine* this) {