Add a break so that generated rooms arre only placed once
This commit is contained in:
parent
a390f4f5e9
commit
c216a6089e
|
@ -183,6 +183,7 @@ class Generator:
|
|||
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)
|
||||
rooms_built += 1
|
||||
break
|
||||
tries += 1
|
||||
|
||||
# post-processing
|
||||
|
|
Loading…
Reference in New Issue