]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: limit angle indicator height to prevent it from going too far outside...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 24 Jun 2020 01:59:59 +0000 (03:59 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 24 Jun 2020 01:59:59 +0000 (03:59 +0200)
qcsrc/client/hud/panel/strafehud.qc

index 22afca216ab2c4fbba9e0f7be9d1045612a4ad03..6f8abeb3c4d996ce896c767419d1ff6d38ed676d 100644 (file)
@@ -430,7 +430,7 @@ void HUD_StrafeHUD()
         {
             currentangle_offset = bound(-hudangle/2, angle, hudangle/2)/hudangle * panel_size.x + panel_size.x/2;
         }
-        currentangle_size.y = max(panel_size.y * autocvar_hud_panel_strafehud_angle_height, 1);
+        currentangle_size.y = max(panel_size.y * min(autocvar_hud_panel_strafehud_angle_height, 2), 1);
         // best strafe acceleration angle
         bestangle_offset        =  bestangle/hudangle * panel_size.x + panel_size.x/2;
         switch_bestangle_offset = -bestangle/hudangle * panel_size.x + panel_size.x/2;