From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 4 Mar 2023 19:12:43 +0000 (+0100) Subject: strafehud: if the slick detector is enabled reserve space for text indicators even... X-Git-Tag: xonotic-v0.8.6~136^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fd75c6719ce82dd39d395af6c5734aa8c7aafb35;p=xonotic%2Fxonotic-data.pk3dir.git 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 32c175c35..42dbb1426 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -774,9 +774,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)