From 6e206f42075999a716620f5b8eb85010dce372b0 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 5 Aug 2024 18:43:11 -0700 Subject: [PATCH] fix sensitivity --- src/physics_worker.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 34375a8..e9a1ca9 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -112,10 +112,12 @@ impl MouseInterpolator<'_>{ &InputInstruction::Zoom(s)=>self.push(ins.time,PhysicsInputInstruction::SetZoom(s)), &InputInstruction::ResetAndSpawn(mode_id,stage_id)=>{ self.push(ins.time,PhysicsInputInstruction::Reset); + self.push(ins.time,PhysicsInputInstruction::SetSensitivity(self.user_settings.calculate_sensitivity())); self.push(ins.time,PhysicsInputInstruction::Spawn(mode_id,stage_id)); }, InputInstruction::ResetAndRestart=>{ self.push(ins.time,PhysicsInputInstruction::Reset); + self.push(ins.time,PhysicsInputInstruction::SetSensitivity(self.user_settings.calculate_sensitivity())); self.push(ins.time,PhysicsInputInstruction::Restart); }, InputInstruction::PracticeFly=>self.push(ins.time,PhysicsInputInstruction::PracticeFly),