From 62a8ea1b460d4b894235d5bfb53aaf01c3748256 Mon Sep 17 00:00:00 2001 From: Reece Yang Date: Fri, 29 Dec 2023 18:40:53 -0600 Subject: [PATCH] change map.terrain to map.environment --- simulation/src/wildlife/bird.rs | 2 +- simulation/src/wildlife/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulation/src/wildlife/bird.rs b/simulation/src/wildlife/bird.rs index 268c2674..75a7a59b 100644 --- a/simulation/src/wildlife/bird.rs +++ b/simulation/src/wildlife/bird.rs @@ -27,7 +27,7 @@ pub fn bird_decision_system(world: &mut World, resources: &mut Resources) { let ra = &*resources.read::(); let map = &*resources.read::(); - let aabb = map.terrain.bounds(); + let aabb = map.environment.bounds(); world.flocks.values().for_each(|flock| { let flock_physics: Vec<(Transform, Speed)> = flock diff --git a/simulation/src/wildlife/mod.rs b/simulation/src/wildlife/mod.rs index f79b0dd2..b83759c7 100644 --- a/simulation/src/wildlife/mod.rs +++ b/simulation/src/wildlife/mod.rs @@ -43,7 +43,7 @@ pub(crate) fn add_flocks_randomly(sim: &mut Simulation) { let mut rng = RandProvider::new(num_flocks as u64); - let aabb = sim.map().terrain.bounds(); + let aabb = sim.map().environment.bounds(); let center_pos = get_random_spawn_pos(aabb, rng.next_f32(), rng.next_f32(), rng.next_f32()); let mut ids: Vec = Vec::new();