From 2496d71afa6c4df24dac65e32b42dfb12daea9ad Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 21 Feb 2024 02:32:00 -0800 Subject: [PATCH] compiler --- src/physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index 1da6608..567fe87 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -702,7 +702,7 @@ impl TouchingState{ } fn base_acceleration(&self,models:&PhysicsModels,style:&StyleModifiers,camera:&PhysicsCamera,input_state:&InputState)->Planar64Vec3{ let mut a=style.gravity; - if let Some(rocket_settings)=style.rocket{ + if let Some(rocket_settings)=&style.rocket{ a+=rocket_settings.acceleration(style.get_propulsion_control_dir(camera,input_state.controls)); } //add accelerators @@ -1369,7 +1369,7 @@ fn run_teleport_behaviour(wormhole:&Option,models }, PhysicsInstruction::StrafeTick=>{ //TODO make this less huge - if let Some(strafe_settings)=state.style.strafe{ + if let Some(strafe_settings)=&state.style.strafe{ let controls=state.input_state.controls; if strafe_settings.activates(controls){ let masked_controls=strafe_settings.mask(controls);