Fix place_walls, that placed floors instead ...
This commit is contained in:
		@@ -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"]:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user