From b9b0029373b0948d2ee63454b6bff9081e9ce627 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 3 Feb 2016 12:03:19 +0200 Subject: [PATCH] Fixed overlapping of active artifacts with time/latency Active artifacts are now displayed below time and/or latency on alternative HUD --- src/g_shared/shared_sbar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_shared/shared_sbar.cpp b/src/g_shared/shared_sbar.cpp index bd2946f2a..0c74f52b7 100644 --- a/src/g_shared/shared_sbar.cpp +++ b/src/g_shared/shared_sbar.cpp @@ -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))