]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: ignore direction timeout when below maxspeed
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 22 Jun 2020 23:01:19 +0000 (01:01 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 22 Jun 2020 23:01:19 +0000 (01:01 +0200)
qcsrc/client/hud/panel/strafehud.qc

index d8117be7dd988e5ad8450cf74e3d4aae756ec40f..164209f128ffdfa7c4ba148bfad8bff7e229d53b 100644 (file)
@@ -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;
                 }