From 21daafe9130e92fd9a7656d3dabb5ddc841be393 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 22 Feb 2022 16:26:51 -0600 Subject: [PATCH] No, really. --- src/visibility.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visibility.rs b/src/visibility.rs index 754dcc9..6dc87b0 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -78,12 +78,12 @@ impl Viewshed { return u8::MAX; } let mut entities = HashSet::new(); - let shape_pos = (Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5), 0.); let dest = point!(coord.x as f32 + 0.5, coord.y as f32 + 0.5); if na::distance(&origin, &dest) > self.range as f32 { return u8::MAX; } let mut opacity = 0; + let shape_pos = (Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5), 0.); query_pipeline.intersections_with_shape( &collider_set, &shape_pos.into(),