diff --git a/src/finish_screen.rs b/src/finish_screen.rs index f2886e7..673216b 100644 --- a/src/finish_screen.rs +++ b/src/finish_screen.rs @@ -24,7 +24,7 @@ fn setup_finish_screen(mut commands: Commands, score: Res, fail: Option, mut wolfs: Query<(Entity, &Transform, &mut WalkController, &TryToCatchSheep)>, - safearea: Query<&SafeArea>, ) { for (wolf, wolf_transform, mut walk_controller, try_to_catch_sheep) in wolfs.iter_mut() { let wolf_translation = wolf_transform.translation; if let Ok(sheep) = sheep.get(try_to_catch_sheep.target) { - if wolf_translation.distance(sheep.translation) < 1.0 - || !safearea.iter().any(|area| { - area.in_area(Vec2 { - x: sheep.translation.x, - y: sheep.translation.z, - }) - }) - { + if wolf_translation.distance(sheep.translation) < 1.0 { commands .entity(wolf) .insert(Eating { time: 10.0 }) @@ -146,12 +139,10 @@ fn eating_system( mut commands: Commands, time: Res