From ae46114f6d467e0074dad66cbdfccede008a888c Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 27 Jul 2021 20:12:36 -0500 Subject: [PATCH] Simplify calculation query. --- src/pathfinding.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pathfinding.rs b/src/pathfinding.rs index 960b864..1cf08a2 100644 --- a/src/pathfinding.rs +++ b/src/pathfinding.rs @@ -183,10 +183,7 @@ fn calculate_path( query_pipeline: Res, obstructions: Query<&MapObstruction>, collider_query: QueryPipelineColliderComponentsQuery, - query: Query< - (Entity, &Destination, &Coordinates, &ColliderShape), - (Without, Without, Without), - >, + query: Query<(Entity, &Destination, &Coordinates, &ColliderShape), Changed>, map: Query<&Map>, ) { for (entity, destination, coordinates, shape) in query.iter() {