Check if in water before changing camera. (#71)
This commit is contained in:
parent
3c38c276c9
commit
b45e8e7e58
|
@ -929,7 +929,7 @@ static void bubbled_offset_visual(struct MarioState* m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 act_bubbled(struct MarioState* m) {
|
s32 act_bubbled(struct MarioState* m) {
|
||||||
if (m->playerIndex == 0) {
|
if (m->playerIndex == 0 && m->area->camera->mode == CAMERA_MODE_WATER_SURFACE) {
|
||||||
set_camera_mode(m->area->camera, CAMERA_MODE_FREE_ROAM, 1);
|
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);
|
||||||
|
|
Loading…
Reference in New Issue