diff --git a/squirrelbattle/mapgeneration/broguelike.py b/squirrelbattle/mapgeneration/broguelike.py index 40529e5..dff9a7c 100644 --- a/squirrelbattle/mapgeneration/broguelike.py +++ b/squirrelbattle/mapgeneration/broguelike.py @@ -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"]: