From 4325d51c9559eb27ba67bf802cc043529f2635c1 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 1 Dec 2019 22:55:17 +0100 Subject: [PATCH] this was bothering me --- MLEM.Extended/Tiled/TiledExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Extended/Tiled/TiledExtensions.cs b/MLEM.Extended/Tiled/TiledExtensions.cs index c3b49da..f4915fc 100644 --- a/MLEM.Extended/Tiled/TiledExtensions.cs +++ b/MLEM.Extended/Tiled/TiledExtensions.cs @@ -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) {