From 8448b01f794566cc25cf9621fb8569a55f5d4ba5 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:37:41 -0500 Subject: [PATCH] Optimize very strange code in mario_set_bubbled --- src/game/mario.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/game/mario.c b/src/game/mario.c index afc1a2c1..08575e68 100644 --- a/src/game/mario.c +++ b/src/game/mario.c @@ -540,11 +540,7 @@ void mario_set_bubbled(struct MarioState* m) { extern s16 gCutsceneTimer; gCutsceneTimer = 0; - - if (m->playerIndex == 0) { - if (m->statusForCamera) { m->statusForCamera->action = m->action; } - soft_reset_camera(m->area->camera); - } + soft_reset_camera(m->area->camera); } /**