From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 22 Jun 2020 23:01:19 +0000 (+0200) Subject: strafehud: ignore direction timeout when below maxspeed X-Git-Tag: xonotic-v0.8.5~738^2~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=252c87a592dd40dd6981e12f15d1b926f2885325;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: ignore direction timeout when below maxspeed --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index d8117be7d..164209f12 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -347,7 +347,7 @@ void HUD_StrafeHUD() } state_fwd_prev = state_fwd; - if((time - state_direction_time) >= autocvar_hud_panel_strafehud_timeout_direction) // timeout when changing between forwards and backwards strafe + if((time - state_direction_time) >= autocvar_hud_panel_strafehud_timeout_direction || speed < maxspeed) // timeout when changing between forwards and backwards strafe { fwd = state_fwd; }