From c7575f2e21d410e81e1d645465d915b351c03780 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 21 Jan 2025 08:49:44 -0800 Subject: [PATCH] deref bool --- strafe-client/src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strafe-client/src/model_physics.rs b/strafe-client/src/model_physics.rs index a8c1577..be7382e 100644 --- a/strafe-client/src/model_physics.rs +++ b/strafe-client/src/model_physics.rs @@ -984,7 +984,7 @@ fn is_empty_volume(normals:Vec>>)->bool{ for k in 0..len{ if k!=i&&k!=j{ let d=n.dot(normals[k]).is_negative(); - if let Some(comp)=&d_comp{ + if let &Some(comp)=&d_comp{ // This is testing if d_comp*d < 0 if comp^d{ return true;