From f59d8ce53abb83bbd79ffe12d98c1130220d5dd5 Mon Sep 17 00:00:00 2001 From: Baconator2558 <77943363+Baconator2558@users.noreply.github.com> Date: Fri, 2 May 2025 12:31:23 -0500 Subject: [PATCH] Update mario_step.c (#784) --- src/game/mario_step.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/mario_step.c b/src/game/mario_step.c index a36f03d5a..c03016b1a 100644 --- a/src/game/mario_step.c +++ b/src/game/mario_step.c @@ -657,7 +657,9 @@ void apply_gravity(struct MarioState *m) { if (!m) { return; } s32 result; - if (m->action == ACT_TWIRLING && m->vel[1] < 0.0f) { + if (smlua_call_action_hook(ACTION_HOOK_GRAVITY, m, &result)) { + + } else if (m->action == ACT_TWIRLING && m->vel[1] < 0.0f) { apply_twirl_gravity(m); } else if (m->action == ACT_SHOT_FROM_CANNON) { m->vel[1] -= 1.0f; @@ -687,8 +689,6 @@ void apply_gravity(struct MarioState *m) { if (m->vel[1] < -16.0f) { m->vel[1] = -16.0f; } - } else if (smlua_call_action_hook(ACTION_HOOK_GRAVITY, m, &result)) { - } else if ((m->flags & MARIO_WING_CAP) && m->vel[1] < 0.0f && (m->input & INPUT_A_DOWN)) { m->marioBodyState->wingFlutter = TRUE;