Skip to content

tilemap: Fixed calculation of tileset rows/columns#3537

Open
bjorn wants to merge 1 commit intococos2d:developfrom
bjorn:patch-1
Open

tilemap: Fixed calculation of tileset rows/columns#3537
bjorn wants to merge 1 commit intococos2d:developfrom
bjorn:patch-1

Conversation

@bjorn
Copy link
Copy Markdown

@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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant