Skip to content
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

TryGetTile no longer returns a value if width is outside the map #755

Merged
merged 1 commit into from
Mar 5, 2022

Conversation

LokiMidgard
Copy link
Contributor

when calling TryGetTile on TileMapTileLayer and using a y coordinate greater then the height the method returns false.
Doing the same with x while y is not at maximum will return true.

This will check the x used and returns false if it is over the width.

@lithiumtoast
Copy link
Contributor

Thanks!

@lithiumtoast lithiumtoast merged commit c903652 into craftworkgames:develop Mar 5, 2022
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.

2 participants