mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 05:55:15 +00:00
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
3e9ceb53b4
commit
6fa9a0f3f5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue