Cleaned up the maze placement so that I can have mazes without rooms and with other features.

This commit is contained in:
Zed A. Shaw 2025-05-20 12:53:03 -04:00
parent 37715f05a5
commit 20f03731e5
6 changed files with 34 additions and 25 deletions

View file

@ -93,7 +93,7 @@ inline std::pair<Point, Point> find_coord(Matrix& maze) {
dbc::sentinel("failed to find coord?");
}
void maze::randomize_rooms(std::vector<Room>& rooms_out, std::vector<Point> maybe_here) {
void maze::randomize_rooms(std::vector<Room>& rooms_out, std::vector<Point>& maybe_here) {
dbc::check(maybe_here.size() >= 2, "must have at least two possible points to place rooms");
while(rooms_out.size() < 2) {