From 64499a627881c4cf9f1fd7a804a30820e49be9b9 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 16 Jun 2021 13:35:32 -0500 Subject: [PATCH] Broaden circumstances in which paths are calculated. --- src/pathfinding.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathfinding.rs b/src/pathfinding.rs index fbfe774..350d220 100644 --- a/src/pathfinding.rs +++ b/src/pathfinding.rs @@ -45,7 +45,7 @@ fn calculate_path( mut commands: Commands, pool: Res, mut calculating: Local>>, - query: Query<(Entity, &Destination, &Coordinates), Without>, + query: Query<(Entity, &Destination, &Coordinates), Or<(Without, Changed)>>, destinations: Query<&Destination>, map: Query<&Map>, ) {