1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 01:39:23 +01:00

this was bothering me

This commit is contained in:
Ellpeck 2019-12-01 22:55:17 +01:00
parent 4cc2881438
commit 4325d51c95

View file

@ -64,7 +64,7 @@ namespace MLEM.Extended.Tiled {
public static RectangleF GetArea(this TiledMapObject obj, TiledMap map, Vector2? position = null) {
var tileSize = map.GetTileSize();
var pos = position ?? Vector2.Zero;
return new RectangleF(obj.Position / tileSize + pos, new Size2(obj.Size.Width, obj.Size.Height) / tileSize);
return new RectangleF(obj.Position / tileSize + pos, obj.Size / tileSize);
}
public static Vector2 GetTileSize(this TiledMap map) {