check walls for spawn

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

View file

@ -69,7 +69,7 @@ internal sealed class MoveTanks(
for (short x = 0; x < MapService.TileSize; x++)
{
var pixelToCheck = topLeft.GetPixelRelative(x, y);
if (map.Current.IsCurrentlyWall(pixelToCheck))
if (map.Current.IsWall(pixelToCheck))
return true;
}