From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 4 Mar 2023 19:14:54 +0000 (+0100) Subject: Add patch from Juhu/strafehud-fixes branch: "strafehud: if the slick detector is... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2583582aed264f0e2d760535149d7376418ebb8b;p=xonotic%2Fxonotic-data.pk3dir.git Add patch from Juhu/strafehud-fixes branch: "strafehud: if the slick detector is enabled reserve space for text indicators even if there's currently no slick being detected" --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index ec811bcc9..1dba1e999 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -813,9 +813,9 @@ void HUD_StrafeHUD() drawfill(panel_pos - eY * slickdetector_size.y, slickdetector_size, autocvar_hud_panel_strafehud_slickdetector_color, autocvar_hud_panel_strafehud_slickdetector_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); // bottom horizontal line drawfill(panel_pos + eY * panel_size.y, slickdetector_size, autocvar_hud_panel_strafehud_slickdetector_color, autocvar_hud_panel_strafehud_slickdetector_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); - - text_offset_top = text_offset_bottom = slickdetector_height; } + + text_offset_top = text_offset_bottom = slickdetector_height; } if(autocvar_hud_panel_strafehud_direction && direction != STRAFEHUD_DIRECTION_NONE && direction_size_vertical.x > 0 && autocvar_hud_panel_strafehud_direction_alpha * panel_fg_alpha > 0)