From fb8c2a619a2800f9b680c83f939d997c22a957da Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 13 Jan 2025 23:51:13 -0800 Subject: [PATCH] rename fields in MouseInstruction::ReplaceMouse --- lib/common/src/physics.rs | 4 ++-- strafe-client/src/mouse_interpolator.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common/src/physics.rs b/lib/common/src/physics.rs index 95dbeac..f20273e 100644 --- a/lib/common/src/physics.rs +++ b/lib/common/src/physics.rs @@ -19,8 +19,8 @@ pub enum Instruction{ pub enum MouseInstruction{ /// Replace the entire interpolation state to avoid dividing by zero when replacing twice ReplaceMouse{ - s0:MouseState, - s1:MouseState, + m0:MouseState, + m1:MouseState, }, SetNextMouse(MouseState), } diff --git a/strafe-client/src/mouse_interpolator.rs b/strafe-client/src/mouse_interpolator.rs index b46c17d..33bc49c 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -92,8 +92,8 @@ impl MouseInterpolator{ let ins_mouse=TimedInstruction{ time:mouse_state.time, instruction:MouseInstruction::ReplaceMouse{ - s0:mouse_state, - s1:next_mouse_state.clone(), + m0:mouse_state, + m1:next_mouse_state.clone(), }, }; return ((Some(ins_mouse),None),BufferState::Buffered(ins.time,next_mouse_state));