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,
|
mut commands: Commands,
|
||||||
pool: Res<AsyncComputeTaskPool>,
|
pool: Res<AsyncComputeTaskPool>,
|
||||||
mut calculating: Local<HashMap<Entity, Receiver<Path>>>,
|
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>,
|
destinations: Query<&Destination>,
|
||||||
map: Query<&Map>,
|
map: Query<&Map>,
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user