From fc435565af521bcd500e39dca62e6d93a7059a3e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Sep 2020 19:43:46 +0200 Subject: [PATCH] - always use the narrow status bar for overlay mode. --- source/games/duke/src/sbar_d.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/games/duke/src/sbar_d.cpp b/source/games/duke/src/sbar_d.cpp index 664803328..71bba951a 100644 --- a/source/games/duke/src/sbar_d.cpp +++ b/source/games/duke/src/sbar_d.cpp @@ -380,13 +380,14 @@ public: void Statusbar(int snum) { + int tile = hud_size < Hud_StbarOverlay ? TILE_BOTTOMSTATUSBAR : BOTTOMSTATUSBAR; // always use the narrow version for the overlay. auto p = &ps[snum]; - int h = tilesiz[TILE_BOTTOMSTATUSBAR].y; + int h = tilesiz[tile].y; int top = 200 - h; - int left = (320 - tilesiz[TILE_BOTTOMSTATUSBAR].x) / 2; + int left = (320 - tilesiz[tile].x) / 2; BeginStatusBar(320, 200, h); DrawInventory(p, 160, 154, 0); - DrawGraphic(tileGetTexture(TILE_BOTTOMSTATUSBAR), left, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1); + DrawGraphic(tileGetTexture(tile), left, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1); FString format;