mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Fixed overlapping of active artifacts with time/latency
Active artifacts are now displayed below time and/or latency on alternative HUD
This commit is contained in:
parent
1bf1fc199b
commit
b9b0029373
1 changed files with 4 additions and 1 deletions
|
@ -1533,9 +1533,12 @@ void DBaseStatusBar::DrawPowerups ()
|
|||
// Each icon gets a 32x32 block to draw itself in.
|
||||
int x, y;
|
||||
AInventory *item;
|
||||
const int yshift = SmallFont->GetHeight();
|
||||
|
||||
x = -20;
|
||||
y = 17;
|
||||
y = 17
|
||||
+ (ST_IsTimeVisible() ? yshift : 0)
|
||||
+ (ST_IsLatencyVisible() ? yshift : 0);
|
||||
for (item = CPlayer->mo->Inventory; item != NULL; item = item->Inventory)
|
||||
{
|
||||
if (item->DrawPowerup (x, y))
|
||||
|
|
Loading…
Reference in a new issue