From a8581a2a4f49b8594b27d92dcfb469ef0ab4fdd5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 13 Jan 2025 23:22:01 -0800 Subject: [PATCH] don't reconstruct MouseState struct with noop --- 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 6998b10..4e38ca0 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -215,7 +215,7 @@ impl MouseInterpolator{ // and it's just here to say that the mouse isn't moving anyways. time:mouse_state.time, instruction:PhysicsInputInstruction::Mouse( - MouseInstruction::SetNextMouse(MouseState{pos:mouse_state.pos,time:mouse_state.time}) + MouseInstruction::SetNextMouse(mouse_state) ), }),BufferState::Unbuffered) },