From fd6745954bd5b089a93637308934887592d85319 Mon Sep 17 00:00:00 2001 From: Sunk <69110309+Sunketchupm@users.noreply.github.com> Date: Wed, 22 Feb 2023 15:13:11 -0500 Subject: [PATCH] Force the player to stop moving upon being popped (#289) --- src/game/mario_actions_automatic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/mario_actions_automatic.c b/src/game/mario_actions_automatic.c index ecea7404..5eaca685 100644 --- a/src/game/mario_actions_automatic.c +++ b/src/game/mario_actions_automatic.c @@ -1047,9 +1047,7 @@ s32 act_bubbled(struct MarioState* m) { m->health = 0x100; m->marioObj->oIntangibleTimer = 0; m->peakHeight = m->pos[1]; - m->vel[0] = 0; - m->vel[1] = 0; - m->vel[2] = 0; + mario_set_forward_vel(m, 0.0f); m->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_INVISIBLE; if (m->playerIndex == 0) { soft_reset_camera(m->area->camera);