Implement QL-style auto-hop (always enabled)

Remove the PMF_JUMP_HELD gate from PM_CheckJump so players can
hold jump to bunny hop continuously without releasing between
hops. The existing Pmove() outer loop already forces upmove=20
when PMF_JUMP_HELD is set, making this the only change needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
serge_shubin 2026-03-21 04:33:41 +08:00
parent 0602b6ad4b
commit 009dc313d4

View file

@ -393,12 +393,10 @@ static qboolean PM_CheckJump( void ) {
return qfalse;
}
// must wait for jump to be released
if ( pm->ps->pm_flags & PMF_JUMP_HELD ) {
// clear upmove so cmdscale doesn't lower running speed
pm->cmd.upmove = 0;
return qfalse;
}
// QL autohop: don't require jump release between hops.
// The Pmove() outer loop already forces upmove=20 when
// PMF_JUMP_HELD is set, so removing this gate lets the
// player hold jump to bunny hop continuously.
PM_Jump();