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;