From 62ed38c952afa39c64dfb674aaa8a00f0a33b5dc Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 29 Jul 2021 19:37:02 -0500 Subject: [PATCH] Minor argument cleanup. --- src/visibility.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visibility.rs b/src/visibility.rs index be38898..8027078 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -152,7 +152,7 @@ fn update_viewshed( } fn update_viewshed_for_coordinates( - visible: Query<(&Coordinates, &BlocksVisibility), Changed>, + visible: Query<&Coordinates, (Changed, With)>, mut viewers: Query<(Entity, &mut Viewshed, &Coordinates)>, map: Query<&Map>, query_pipeline: Res, @@ -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;