Skip to content

Commit

Permalink
change map.terrain to map.environment
Browse files Browse the repository at this point in the history
  • Loading branch information
reeceyang committed Dec 30, 2023
1 parent 9480192 commit 62a8ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simulation/src/wildlife/bird.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn bird_decision_system(world: &mut World, resources: &mut Resources) {
let ra = &*resources.read::<GameTime>();
let map = &*resources.read::<Map>();

let aabb = map.terrain.bounds();
let aabb = map.environment.bounds();

world.flocks.values().for_each(|flock| {
let flock_physics: Vec<(Transform, Speed)> = flock
Expand Down
2 changes: 1 addition & 1 deletion simulation/src/wildlife/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BirdID> = Vec::new();
Expand Down

0 comments on commit 62a8ea1

Please sign in to comment.