Force the player to stop moving upon being popped (#289)

This commit is contained in:
Sunk 2023-02-22 15:13:11 -05:00 committed by GitHub
parent 5e95fb14f1
commit fd6745954b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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);