From cf77f6d9917d6b5b966565a4a2d8e720ae2a6b30 Mon Sep 17 00:00:00 2001 From: Isaac <62234577+Isaac0-dev@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:04:01 +1000 Subject: [PATCH] Fix camera for bubble in water (#49) When a player dies in water, the camera continues to use the camera for under water even when you exit the water with the bubble. This commit fixes the issue. --- src/game/mario_actions_automatic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/mario_actions_automatic.c b/src/game/mario_actions_automatic.c index 595f67b6..d386575c 100644 --- a/src/game/mario_actions_automatic.c +++ b/src/game/mario_actions_automatic.c @@ -927,6 +927,7 @@ static void bubbled_offset_visual(struct MarioState* m) { } s32 act_bubbled(struct MarioState* m) { + set_camera_mode(m->area->camera, CAMERA_MODE_FREE_ROAM, 1); struct MarioState* targetMarioState = nearest_mario_state_to_object(m->marioObj); struct Object* target = targetMarioState->marioObj; int angleToPlayer = obj_angle_to_object(m->marioObj, target);