Skip to content

Commit 597a2a1

Browse files
committed
Anchor extended HUD when using status bar too
1 parent a33c844 commit 597a2a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/src/st_new.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,7 @@ static void drawLevelStats()
799799
if (AM_ClassicAutomapVisible() || AM_OverlayAutomapVisible())
800800
return;
801801

802-
unsigned int xscale, yscale;
803-
xscale = hud_scale ? CleanXfac : 1;
802+
unsigned int xscale = hud_scale ? CleanXfac : 1;
804803
int num_ax = 0, text_ax = 0;
805804
if (hud_anchoring.value() < 1.0f)
806805
{
@@ -812,7 +811,7 @@ static void drawLevelStats()
812811
std::string line;
813812
const int LINE_SPACING = V_LineHeight() + 1;
814813
int font_offset = 0;
815-
unsigned int x = R_StatusBarVisible() ? 2 : (text_ax + 10), y = R_StatusBarVisible() ? statusBarY() + 1 : 44;
814+
unsigned int x = R_StatusBarVisible() ? (text_ax + 2) : (text_ax + 10), y = R_StatusBarVisible() ? statusBarY() + 1 : 44;
816815

817816
if (hud_extendedinfo == 1 || hud_extendedinfo == 3)
818817
{

0 commit comments

Comments
 (0)