devilutionX
devilutionX copied to clipboard
Clean up FindSlotUnderCursor
@ephphatha am I missing something here :)
When dropping a large item into the inventory the half slot subtraction seems to be so that the hot pixel gets shifted to the top left corner of the cursor, without that putting a 2x2 or 3x2 item into the inventory makes it end up further right and down of where you'd expect.
base: https://user-images.githubusercontent.com/357684/227360397-1ed78328-ce5b-450d-a774-57eb3c72d90e.mp4
this pr: https://user-images.githubusercontent.com/357684/227360459-3f3cc3bf-1f43-4beb-ab82-e60be4d532e6.mp4
Oh that makes sens, thanks I'll correct that and update the PR.