From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Tue, 23 Jun 2020 19:01:20 +0000 (+0200) Subject: strafehud: no direction timeout when changing direction in mode 0 using strafekeys... X-Git-Tag: xonotic-v0.8.5~738^2~34 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f66c05e5ecf963d1a475ae5175133fc69c25ac56;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: no direction timeout when changing direction in mode 0 using strafekeys since the transition is seamless but keep it for mode 1 --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 5e2f3ecfa..12576b298 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -349,7 +349,7 @@ void HUD_StrafeHUD() } state_fwd_prev = state_fwd; - if((time - state_fwd_time) >= autocvar_hud_panel_strafehud_timeout_direction || speed < maxspeed || strafekeys) // timeout when changing between forwards and backwards movement + if((time - state_fwd_time) >= autocvar_hud_panel_strafehud_timeout_direction || speed < maxspeed || (strafekeys && mode == 0)) // timeout when changing between forwards and backwards movement { fwd = state_fwd; }