diff --git a/strafe-client/src/mouse_interpolator.rs b/strafe-client/src/mouse_interpolator.rs index d225bae..e52e9c5 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -149,7 +149,7 @@ impl MouseInterpolator{ if let Instruction::MoveMouse(pos)=ins.instruction.instruction{ let next_mouse_state=MouseState{pos,time:ins.instruction.time}; let ins_mouse=TimedInstruction{ - time:ins.instruction.time, + time:mouse_state.time, instruction:MouseInstruction::SetNextMouse(next_mouse_state.clone()), }; return ((Some(ins_mouse),None),BufferState::Buffered(ins.time,next_mouse_state));