From 2583582aed264f0e2d760535149d7376418ebb8b Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 4 Mar 2023 20:14:54 +0100 Subject: [PATCH] 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" --- qcsrc/client/hud/panel/strafehud.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2