From c60acd7af41d6190fd00317c673ca4262c9779f1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Aug 2020 00:35:04 +0200 Subject: [PATCH] - fixed RR's HUD positioning when the weapon bar is active. --- source/games/duke/src/sbar_r.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/sbar_r.cpp b/source/games/duke/src/sbar_r.cpp index 612508303..0c23863fb 100644 --- a/source/games/duke/src/sbar_r.cpp +++ b/source/games/duke/src/sbar_r.cpp @@ -323,8 +323,11 @@ public: { auto p = &ps[snum]; double h = tilesiz[BOTTOMSTATUSBAR].y * scale; + double wh = 0; + if (hud_size < Hud_Stbar) wh = tilesiz[WEAPONBAR].y * scale; + double top = 200 - h; - BeginStatusBar(320, 200, h); + BeginStatusBar(320, 200, wh + h); DrawInventory(p, 160, 154, 0); if (hud_size < Hud_Stbar)