]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: if the slick detector is enabled reserve space for text indicators even...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 4 Mar 2023 19:12:43 +0000 (20:12 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 4 Mar 2023 19:12:43 +0000 (20:12 +0100)
qcsrc/client/hud/panel/strafehud.qc

index 32c175c35194154a9084e486befcb9feafc23449..42dbb1426c1b9ece3394f1044d6cd6ca705a494f 100644 (file)
@@ -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)