Browse Source

One pixel was not being calculated on the X axis when trying to find for an inventory slot to put the item.

pull/1984/head
Stefan Mielke 5 years ago committed by Anders Jenbo
parent
commit
30bfe45781
  1. 2
      Source/inv.cpp

2
Source/inv.cpp

@ -854,7 +854,7 @@ void CheckInvPaste(int pnum, int mx, int my)
yo = PANEL_TOP;
}
if (i >= InvRect[r].X + xo && i < InvRect[r].X + xo + INV_SLOT_SIZE_PX) {
if (i >= InvRect[r].X + xo && i <= InvRect[r].X + xo + INV_SLOT_SIZE_PX) {
if (j >= InvRect[r].Y + yo - INV_SLOT_SIZE_PX - 1 && j < InvRect[r].Y + yo) {
done = true;
r--;

Loading…
Cancel
Save