check walls for spawn

This commit is contained in:
Vinzenz Schroeter 2024-04-14 22:45:51 +02:00
commit 359e0235f9

View file

@ -28,9 +28,7 @@ internal sealed class SpawnNewTanks(
for (ushort y = 1; y < MapService.TilesPerColumn - 1; y++)
{
var tile = new TilePosition(x, y);
// TODO: implement lookup for non tile aligned walls
if (map.Current.IsCurrentlyWall(tile.ToPixelPosition()))
if (map.Current.IsWall(tile))
continue;
var tilePixelCenter = tile.ToPixelPosition().GetPixelRelative(4, 4).ToFloatPosition();