Fix place_walls, that placed floors instead ...
This commit is contained in:
		@@ -60,9 +60,9 @@ class Generator:
 | 
				
			|||||||
        for y in range(h):
 | 
					        for y in range(h):
 | 
				
			||||||
            for x in range(w):
 | 
					            for x in range(w):
 | 
				
			||||||
                if level[y][x] == Tile.FLOOR:
 | 
					                if level[y][x] == Tile.FLOOR:
 | 
				
			||||||
                    for dy, dx in Map.neighbourhood(level, y, x):
 | 
					                    for ny, nx in Map.neighbourhood(level, y, x):
 | 
				
			||||||
                        if level[y+dy][x+dx] == Tile.EMPTY:
 | 
					                        if level[ny][nx] == Tile.EMPTY:
 | 
				
			||||||
                            level[y+dy][x+dx] = Tile.FLOOR
 | 
					                            level[ny][nx] = Tile.WALL
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
    def corr_meta_info(self):
 | 
					    def corr_meta_info(self):
 | 
				
			||||||
        if random() < self.params["corridor_chance"]:
 | 
					        if random() < self.params["corridor_chance"]:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user