Add a break so that generated rooms arre only placed once

This commit is contained in:
Charles Peyrat 2021-01-08 16:51:04 +01:00
parent a390f4f5e9
commit c216a6089e

View File

@ -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