EASIER_LONG_JUMPS: only long jump with A+Z while running (#801)

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
This commit is contained in:
Gregory Heskett
2024-07-01 21:47:15 -04:00
committed by GitHub
parent 03ba81b5e3
commit 9adb8c6de8
2 changed files with 5 additions and 9 deletions

View File

@@ -429,15 +429,6 @@ u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation,
}
s32 act_jump(struct MarioState *m) {
#ifdef EASIER_LONG_JUMPS
if (m->actionTimer < 1) {
m->actionTimer++;
if (m->input & INPUT_Z_PRESSED && m->forwardVel > 10.0f) {
return set_jumping_action(m, ACT_LONG_JUMP, 0);
}
}
#endif
if (check_kick_or_dive_in_air(m)) {
return TRUE;
}

View File

@@ -766,6 +766,11 @@ s32 act_walking(struct MarioState *m) {
}
if (m->input & INPUT_A_PRESSED) {
#ifdef EASIER_LONG_JUMPS
if (m->input & INPUT_Z_PRESSED && m->forwardVel > 10.0f) {
return set_mario_action(m, ACT_CROUCH_SLIDE, 0);
}
#endif
return set_jump_from_landing(m);
}