check walls for spawn
This commit is contained in:
parent
6bed7d918f
commit
359e0235f9
5 changed files with 34 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue