Fix walls
This commit is contained in:
parent
1ab63434f6
commit
8e7029e34d
|
@ -71,8 +71,8 @@ class Generator:
|
||||||
h, w = len(level), len(level[0])
|
h, w = len(level), len(level[0])
|
||||||
for y in range(h):
|
for y in range(h):
|
||||||
for x in range(w):
|
for x in range(w):
|
||||||
if level[y][x] == Tile.FLOOR:
|
if not level[y][x].is_wall():
|
||||||
for ny, nx in Map.neighbourhood(level, y, x):
|
for ny, nx in Map.neighbourhood(level, y, x, large=True):
|
||||||
if level[ny][nx] == Tile.EMPTY:
|
if level[ny][nx] == Tile.EMPTY:
|
||||||
level[ny][nx] = Tile.WALL
|
level[ny][nx] = Tile.WALL
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue