From f98ffe6e0b08ac03776d0ee09c38f8b7a2654407 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 15 Jan 2025 00:38:54 -0800 Subject: [PATCH] fix spin bug edge case --- 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 2e57fe7..8b26fe1 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -110,7 +110,7 @@ impl MouseInterpolator{ // but the timer is not accessible from this scope // and it's just here to say that the mouse isn't moving anyways. // I think this is a divide by zero bug, two identical mouse_states will occupy the interpolation state - time, + time:mouse_state.time, instruction:MouseInstruction::SetNextMouse(MouseState{pos:mouse_state.pos,time}), }); },