Adding a missing parenthesis
This commit is contained in:
parent
e91deccb6f
commit
deb52d7350
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue