From 6d1e3e77fc81c349bcd8a4ebb7c2546930fe1ddb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Aug 2020 20:46:14 +0200 Subject: [PATCH] - fixed item percentage display on SW's status bar. Fixes #242 --- source/sw/src/sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/sbar.cpp b/source/sw/src/sbar.cpp index 7fa7d96df..e97a8b04b 100644 --- a/source/sw/src/sbar.cpp +++ b/source/sw/src/sbar.cpp @@ -490,7 +490,7 @@ private: char ds[32]; INVENTORY_DATAp id = &InventoryData[pp->InventoryNum]; - int x = InventoryBoxX + INVENTORY_PERCENT_XOFF + InventoryXoff; + int x = InventoryBoxX + INVENTORY_PERCENT_XOFF + InventoryXoff-1; int y = InventoryBoxY + INVENTORY_PERCENT_YOFF + InventoryYoff; if (TEST(id->Flags, INVF_COUNT))