From 7476d7cdc72b8981d2d8a582881665216561ef83 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 14 Jan 2025 23:33:50 -0800 Subject: [PATCH] the mouse spin bug --- strafe-client/src/mouse_interpolator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));