Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
tilemap: Fixed calculation of tileset rows/columns #3537
The margin should only be subtracted once, since it’s irrelevant whether the margin exists also at the bottom or the right side of the image.
With this change it matches the behavior of Tiled.
Note that I didn't have time to test this change, but I think it's straight-forward enough.