From 30e8111979520c4cf620db3c2d06cb8e1f743366 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 Jan 2021 23:51:50 +0100 Subject: [PATCH] - fix inventory selector positioning in WW2GI. This must have abused some quirk of the original code to be this far off... --- source/games/duke/src/sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/sbar.cpp b/source/games/duke/src/sbar.cpp index 32b65659d..f4c85cf6a 100644 --- a/source/games/duke/src/sbar.cpp +++ b/source/games/duke/src/sbar.cpp @@ -161,7 +161,7 @@ void DDukeCommonStatusBar::DrawInventory(const struct player_struct* p, double x int select = 1 << (p->inven_icon - 1); double alpha = select == i ? 1.0 : 0.7; DrawGraphic(tileGetTexture(item_icons[bit+1]), x, y, align, alpha, 0, 0, scale, scale); - if (select == i) DrawGraphic(tileGetTexture(TILE_ARROW), x, y, align, alpha, 0, 0, scale, scale); + if (select == i) DrawGraphic(tileGetTexture(TILE_ARROW), isWW2GI()? x + 7.5 : x, isWW2GI()? y + 0.5 : y, align, alpha, 0, 0, scale, scale); x += 22; } }