diff --git a/src/entities/shared_systems/pathfinding.rs b/src/entities/shared_systems/pathfinding.rs index d94ff09..ee32237 100644 --- a/src/entities/shared_systems/pathfinding.rs +++ b/src/entities/shared_systems/pathfinding.rs @@ -596,8 +596,10 @@ pub fn movement( if ambulatory.path_index < path.len() { let next_point = path[ambulatory.path_index]; - let current_crowded = occupancy.count_at(transform.translation) > 2; - let occupied = !current_crowded && occupancy.count_at(next_point) > 1; + let current_count = occupancy.count_at(transform.translation); + let next_count = occupancy.count_at(next_point); + let current_crowded = current_count > 3; + let occupied = !current_crowded && next_count > current_count; if occupied { let move_dir = next_point - transform.translation; if move_dir.length_squared() > 0.0 {