Allow spin jump fall to be slowed when holding A with wing cap

This commit is contained in:
TheGag96 2020-10-03 17:36:06 -05:00
parent 883194f626
commit f7737a0816

View file

@ -547,10 +547,22 @@ void apply_gravity(struct MarioState *m) {
m->vel[1] = -75.0f;
}
} else if (m->action == ACT_SPIN_JUMP) {
if ((m->flags & MARIO_WING_CAP) && m->vel[1] < 0.0f && (m->input & INPUT_A_DOWN)) {
m->marioBodyState->wingFlutter = TRUE;
m->vel[1] -= 0.7f;
if (m->vel[1] < -37.5f) {
if ((m->vel[1] += 1.4f) > -37.5f) {
m->vel[1] = -37.5f;
}
}
}
else
{
m->vel[1] -= (m->vel[1] > 0.0f) ? 4.0f : 1.4f;
if (m->vel[1] < -75.0f) {
m->vel[1] = -75.5f;
}
}
} else if (m->action == ACT_WALL_SLIDE) {
m->vel[1] -= 2.0f;
if (m->vel[1] < -15.0f) {