]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: apply antiflicker_speed value while swimming to detect when player stops...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 23 Jun 2020 00:24:14 +0000 (02:24 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 23 Jun 2020 00:24:14 +0000 (02:24 +0200)
qcsrc/client/hud/panel/strafehud.qc

index 1a66c83270e69d3d0e8ec85a0893dee8eb644af5..689417bd4dfacaf58204185524ab2dd566dcd544 100644 (file)
@@ -472,7 +472,7 @@ void HUD_StrafeHUD()
         overturn_width_visible = (hudangle/2 - maxangle) / hudangle * panel_size.x;
 
         // the strafe bar fills the whole hud panel
-        if(speed == 0)
+        if(speed <= (is_swimming ? antiflicker_speed : 0))
         {
             // add a background to the strafe-o-meter
             if(panel_size.x > 0 && panel_size.y > 0)