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