Fix walls
This commit is contained in:
		| @@ -71,8 +71,8 @@ class Generator: | ||||
|         h, w = len(level), len(level[0]) | ||||
|         for y in range(h): | ||||
|             for x in range(w): | ||||
|                 if level[y][x] == Tile.FLOOR: | ||||
|                     for ny, nx in Map.neighbourhood(level, y, x): | ||||
|                 if not level[y][x].is_wall(): | ||||
|                     for ny, nx in Map.neighbourhood(level, y, x, large=True): | ||||
|                         if level[ny][nx] == Tile.EMPTY: | ||||
|                             level[ny][nx] = Tile.WALL | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user