Cleaned up the maze placement so that I can have mazes without rooms and with other features.
This commit is contained in:
parent
37715f05a5
commit
20f03731e5
6 changed files with 34 additions and 25 deletions
2
maze.cpp
2
maze.cpp
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue