Broaden circumstances in which paths are calculated.
This commit is contained in:
parent
822e60e722
commit
64499a6278
|
@ -45,7 +45,7 @@ fn calculate_path(
|
|||
mut commands: Commands,
|
||||
pool: Res<AsyncComputeTaskPool>,
|
||||
mut calculating: Local<HashMap<Entity, Receiver<Path>>>,
|
||||
query: Query<(Entity, &Destination, &Coordinates), Without<Path>>,
|
||||
query: Query<(Entity, &Destination, &Coordinates), Or<(Without<Path>, Changed<Destination>)>>,
|
||||
destinations: Query<&Destination>,
|
||||
map: Query<&Map>,
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user