Made sure to update 'statusForCamera' whenever we soft_reset_camera()
This commit is contained in:
parent
a3965d8e73
commit
dba41da8ed
|
@ -535,6 +535,7 @@ void mario_set_bubbled(struct MarioState* m) {
|
|||
gCutsceneTimer = 0;
|
||||
|
||||
if (m->playerIndex == 0) {
|
||||
if (m->statusForCamera) { m->statusForCamera->action = m->action; }
|
||||
soft_reset_camera(m->area->camera);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1113,6 +1113,7 @@ s32 act_bubbled(struct MarioState* m) {
|
|||
m->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_INVISIBLE;
|
||||
m->invincTimer = 30 * 3;
|
||||
if (m->playerIndex == 0) {
|
||||
if (m->statusForCamera) { m->statusForCamera->action = m->action; }
|
||||
soft_reset_camera(m->area->camera);
|
||||
}
|
||||
u8 underWater = (m->pos[1] < ((f32)m->waterLevel));
|
||||
|
|
|
@ -753,6 +753,7 @@ void general_star_dance_handler(struct MarioState *m, s32 isInWater) {
|
|||
set_mario_action(m, isInWater ? ACT_WATER_IDLE : (m->pos[1] <= m->floorHeight ? ACT_IDLE : ACT_FREEFALL), 0);
|
||||
}
|
||||
if (gServerSettings.stayInLevelAfterStar) {
|
||||
if (m->statusForCamera) { m->statusForCamera->action = m->action; }
|
||||
soft_reset_camera(m->area->camera);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue