Skip to content

Commit

Permalink
Fix position of health in widescreen HUD for BTSX
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 3, 2023
1 parent b3af723 commit 2918f85
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,17 +600,29 @@ static void HU_DrawHUD(void)

if (healthhighlight > currenttime)
{
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc2);

if (!emptytallpercent)
if (emptytallpercent)
{
health_x -= 4;
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc2);
}
else
{
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc2);
hudnumfunc2(health_x, HUD_HEALTH_Y, tallpercent, tinttab);
}
}
else
{
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc);

if (!emptytallpercent)
if (emptytallpercent)
{
health_x -= 4;
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc);
}
else
{
DrawHUDNumber(&health_x, HUD_HEALTH_Y, health, tinttab, hudnumfunc);
hudnumfunc(health_x, HUD_HEALTH_Y, tallpercent, tinttab);
}
}
}

Expand Down

0 comments on commit 2918f85

Please sign in to comment.