diff --git a/src/activities/house/mod.rs b/src/activities/house/mod.rs index e3ffdc0..a26db43 100644 --- a/src/activities/house/mod.rs +++ b/src/activities/house/mod.rs @@ -42,11 +42,11 @@ pub fn update(state: &mut crate::State, ctx: &mut comfy::EngineContext<'_>) { let house = state.house_mut(); house.player.update(&house.grid); - if house.player.is_moving_to_right_room(&house.room) { - house.room = Room::new(ctx); - house.player.reset_on_room(&house.room, true); - } else if house.player.is_moving_to_left_room(&house.room) { - house.room = Room::new(ctx); - house.player.reset_on_room(&house.room, false); - } + if house.player.is_moving_to_right_room(&house.room) { + house.room = Room::new(ctx); + house.player.reset_on_room(&house.room, true); + } else if house.player.is_moving_to_left_room(&house.room) { + house.room = Room::new(ctx); + house.player.reset_on_room(&house.room, false); + } }