From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Tue, 23 Jun 2020 00:24:14 +0000 (+0200) Subject: strafehud: apply antiflicker_speed value while swimming to detect when player stops... X-Git-Tag: xonotic-v0.8.5~738^2~45 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=727fb037fff9838b3ebfbf3a8782d7f4c9936f65;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: apply antiflicker_speed value while swimming to detect when player stops completely --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 1a66c8327..689417bd4 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -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)