Fix place_walls, that placed floors instead ...

This commit is contained in:
Charles Peyrat 2021-01-08 07:03:49 +01:00
parent d362bdc949
commit b0ac580677

View File

@ -60,9 +60,9 @@ class Generator:
for y in range(h):
for x in range(w):
if level[y][x] == Tile.FLOOR:
for dy, dx in Map.neighbourhood(level, y, x):
if level[y+dy][x+dx] == Tile.EMPTY:
level[y+dy][x+dx] = Tile.FLOOR
for ny, nx in Map.neighbourhood(level, y, x):
if level[ny][nx] == Tile.EMPTY:
level[ny][nx] = Tile.WALL
def corr_meta_info(self):
if random() < self.params["corridor_chance"]: