map renderer fixes (#29523)

* map renderer fixes

* remove useless casts
This commit is contained in:
Nemanja
2024-06-27 20:09:05 -04:00
committed by GitHub
parent bc1703323e
commit c7fcbe8c16
3 changed files with 17 additions and 7 deletions

View File

@@ -138,8 +138,8 @@ namespace Content.MapRenderer.Painters
var yOffset = (int) -grid.LocalAABB.Bottom;
var tileSize = grid.TileSize;
var x = ((float) Math.Floor(position.X) + xOffset) * tileSize * TilePainter.TileImageSize;
var y = ((float) Math.Floor(position.Y) + yOffset) * tileSize * TilePainter.TileImageSize;
var x = (position.X + xOffset) * tileSize * TilePainter.TileImageSize;
var y = (position.Y + yOffset) * tileSize * TilePainter.TileImageSize;
return (x, y);
}