diff --git a/Source/inv.cpp b/Source/inv.cpp index 525d52408..a56bf69ab 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1122,13 +1122,10 @@ void DrawInv(const Surface &out) auto frameSize = GetInvItemSize(cursId); - // calc item offsets for weapons smaller than 2x3 slots - if (slot == INVLOC_HAND_LEFT) { + // calc item offsets for weapons/armor smaller than 2x3 slots + if (IsAnyOf(slot, INVLOC_HAND_LEFT, INVLOC_HAND_RIGHT, INVLOC_CHEST)) { screenX += frameSize.width == InventorySlotSizeInPixels.width ? INV_SLOT_HALF_SIZE_PX : 0; screenY += frameSize.height == (3 * InventorySlotSizeInPixels.height) ? 0 : -INV_SLOT_HALF_SIZE_PX; - } else if (slot == INVLOC_HAND_RIGHT) { - screenX += frameSize.width == InventorySlotSizeInPixels.width ? (INV_SLOT_HALF_SIZE_PX - 1) : 1; - screenY += frameSize.height == (3 * InventorySlotSizeInPixels.height) ? 0 : -INV_SLOT_HALF_SIZE_PX; } const ClxSprite sprite = GetInvItemSprite(cursId);