Fix syntax error

This commit is contained in:
Charles Peyrat 2020-12-18 18:10:52 +01:00
parent 5fbb918132
commit ba3d979f9c
1 changed files with 2 additions and 2 deletions

View File

@ -113,11 +113,11 @@ class Generator:
result.tiles[y][x] = Tile.WALL result.tiles[y][x] = Tile.WALL
for x in range(width): for x in range(width):
for y in [0, height-1]: for y in [0, height-1]:
if grid[y][x] = Tile.FLOOR: if grid[y][x] == Tile.FLOOR:
grid[y][x] = Tile.WALL grid[y][x] = Tile.WALL
for y in range(height): for y in range(height):
for y in [0, width-1]: for y in [0, width-1]:
if grid[y][x] = Tile.FLOOR: if grid[y][x] == Tile.FLOOR:
grid[y][x] = Tile.WALL grid[y][x] = Tile.WALL
return result return result