Adding a missing parenthesis

This commit is contained in:
Charles Peyrat 2020-12-11 19:05:26 +01:00
parent e91deccb6f
commit deb52d7350
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class Generator:
for x in range(width): for x in range(width):
for y in range(height): for y in range(height):
if grid[y][x] == Tile.EMPTY: if grid[y][x] == Tile.EMPTY:
c = sum([1 if grid[j][i] == Tile.FLOOR else 0 for j, i in result.neighbourhood(y, x, large=True]) c = sum([1 if grid[j][i] == Tile.FLOOR else 0 for j, i in result.neighbourhood(y, x, large=True)])
if c == 4 and self.params["no_lone_walls"]: if c == 4 and self.params["no_lone_walls"]:
result.tiles[y][x] = Tile.FLOOR result.tiles[y][x] = Tile.FLOOR
elif c > 0: elif c > 0: