Skip to content

Commit

Permalink
not right
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Feb 3, 2022
1 parent e9886a0 commit 0b0bda5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/house.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ fn gen_rooms(rng: &mut ThreadRng, cells: &Cells, coords: &Vec<Coord>) {
true
}
None => {
// TODO: this is not right. Ignores other room.
cell_rooms.insert(cell.coords, rooms.len());
rooms.push(1);
rooms.push(2);
true
}
_ => false,
Expand Down

0 comments on commit 0b0bda5

Please sign in to comment.