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.
This commit is contained in:
parent
e3f7c91683
commit
cf77f6d991
|
@ -927,6 +927,7 @@ static void bubbled_offset_visual(struct MarioState* m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 act_bubbled(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 MarioState* targetMarioState = nearest_mario_state_to_object(m->marioObj);
|
||||||
struct Object* target = targetMarioState->marioObj;
|
struct Object* target = targetMarioState->marioObj;
|
||||||
int angleToPlayer = obj_angle_to_object(m->marioObj, target);
|
int angleToPlayer = obj_angle_to_object(m->marioObj, target);
|
||||||
|
|
Loading…
Reference in New Issue