Minor argument cleanup.

This commit is contained in:
Nolan Darilek 2021-07-29 19:37:02 -05:00
parent 5664f9e646
commit 62ed38c952

View File

@ -152,7 +152,7 @@ fn update_viewshed(
}
fn update_viewshed_for_coordinates(
visible: Query<(&Coordinates, &BlocksVisibility), Changed<Coordinates>>,
visible: Query<&Coordinates, (Changed<Coordinates>, With<BlocksVisibility>)>,
mut viewers: Query<(Entity, &mut Viewshed, &Coordinates)>,
map: Query<&Map>,
query_pipeline: Res<QueryPipeline>,
@ -160,7 +160,7 @@ fn update_viewshed_for_coordinates(
blocks_visibility: Query<&BlocksVisibility>,
coordinates_query: Query<&Coordinates>,
) {
for (coordinates, _) in visible.iter() {
for coordinates in visible.iter() {
for (viewer_entity, mut viewshed, start) in viewers.iter_mut() {
if coordinates.distance(start) > viewshed.range as f32 {
continue;