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));