craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

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

Closed LokiMidgard closed 2 years ago

LokiMidgard commented 2 years ago

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 commented 2 years ago

Thanks!