Add missing termination condition
This commit is contained in:
		@@ -165,6 +165,8 @@ class Generator:
 | 
				
			|||||||
                y, x = pos // width, pos % width
 | 
					                y, x = pos // width, pos % width
 | 
				
			||||||
                if self.room_fits(level, y, x, room, door_y, door_x, dy, dx):
 | 
					                if self.room_fits(level, y, x, room, door_y, door_x, dy, dx):
 | 
				
			||||||
                    self.place_room(level, y, x, room, door_y, door_x)
 | 
					                    self.place_room(level, y, x, room, door_y, door_x)
 | 
				
			||||||
 | 
					                    rooms_built += 1
 | 
				
			||||||
 | 
					            tries += 1
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        # post-processing
 | 
					        # post-processing
 | 
				
			||||||
        self.place_walls(level)
 | 
					        self.place_walls(level)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user