Room Creating: Place Kitchen Furniture #11
1 changed files with 2 additions and 2 deletions
|
@ -101,9 +101,9 @@ impl Room {
|
||||||
const STOVE_HEIGHT: f32 = 0.025;
|
const STOVE_HEIGHT: f32 = 0.025;
|
||||||
const SINK_HEIGHT: f32 = 0.5;
|
const SINK_HEIGHT: f32 = 0.5;
|
||||||
|
|
||||||
#[allow(clippy::single_match, unreachable_patterns)] // we'll add more stuff later
|
#[allow(clippy::single_match)] // we'll add more stuff later
|
||||||
match room_type {
|
match room_type {
|
||||||
_ => {
|
RoomType::Kitchen => {
|
||||||
// in a kitchen, we always add a fridge
|
// in a kitchen, we always add a fridge
|
||||||
let fridge_pos = u8::gen_range(0, 2) * (width - 1);
|
let fridge_pos = u8::gen_range(0, 2) * (width - 1);
|
||||||
empty_spots.swap_remove(&fridge_pos);
|
empty_spots.swap_remove(&fridge_pos);
|
||||||
|
|
Loading…
Reference in a new issue