check walls for spawn

This commit is contained in:
Vinzenz Schroeter 2024-04-14 22:45:51 +02:00
parent 6bed7d918f
commit 359e0235f9
5 changed files with 34 additions and 22 deletions

View file

@ -11,7 +11,7 @@ internal sealed class DrawMapStep(MapService map) : IDrawStep
for (ushort x = 0; x < MapService.PixelsPerRow; x++)
{
var pixel = new PixelPosition(x, y);
if (!map.Current.IsCurrentlyWall(pixel))
if (!map.Current.IsWall(pixel))
continue;
buffer[x, y] = true;
}