devilutionX
devilutionX copied to clipboard
refactored GetItemSpace
This patch refactors the function. The behavior is exactly the same, without the messy loops. As a bonus, one global is removed.
The +1 was causing the issue. This version should return the same point as original version.