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