New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tilemap: Fixed calculation of tileset rows/columns #3537

Open
wants to merge 1 commit into
base: develop
from

Conversation

Projects
None yet
1 participant
@bjorn

bjorn commented Oct 26, 2017

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.

tilemap: Fixed calculation of tileset rows/columns
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment