From 38564fbebee57456cfe7fa602640eb1691bb05ca Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 25 Mar 2022 11:22:46 -0500 Subject: [PATCH] Remove bad cache hit check. --- src/visibility.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/visibility.rs b/src/visibility.rs index 25e41be..c7427ba 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -327,11 +327,6 @@ fn update_viewshed( && (viewer_coordinates.distance(&coordinates) <= viewshed.range as f32 || visible_entities.contains(&entity)) { - if let Some(last_coords) = last_coordinates { - if **last_coords == coordinates_i32 { - continue; - } - } to_update.insert(viewer_entity); } }