From 405cba3549ffb693baa3d3b6fc16ae061680ccf7 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 14 Jan 2025 18:39:27 -0800 Subject: [PATCH] discover ternary method on bool --- strafe-client/src/physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strafe-client/src/physics.rs b/strafe-client/src/physics.rs index c3fdc60..ae55342 100644 --- a/strafe-client/src/physics.rs +++ b/strafe-client/src/physics.rs @@ -1142,8 +1142,8 @@ impl PhysicsContext{ .map_or(None,|(face,dt)|{ // this must be rounded to avoid the infinite loop when hitting the start zone let time=relative_body.time+dt.into(); - if time<=state.time{None}else{Some((time,face,dt))}}) - .map(|(time,face,dt)| + (state.time