]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add patch from Juhu/strafehud-fixes branch: "strafehud: if the slick detector is...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 4 Mar 2023 19:14:54 +0000 (20:14 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 4 Mar 2023 19:14:54 +0000 (20:14 +0100)
qcsrc/client/hud/panel/strafehud.qc

index ec811bcc9615aa3ac23c423ccb4be4c81adc999b..1dba1e999624df6a2cfd4ff31e1712f89f86791e 100644 (file)
@@ -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)