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:
parent
4cc2881438
commit
4325d51c95
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue