diff --git a/strafe-client/src/mouse_interpolator.rs b/strafe-client/src/mouse_interpolator.rs index 420ba30..4957ac9 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -62,9 +62,14 @@ impl MouseInterpolator{ // if there is zero instruction buffered, it means the mouse is not moving } fn is_first_ready(&self)->bool{ - // if the last instruction is a mouse instruction + // if the last instruction is a ReplaceMouse instruction + matches!(self.physics_timeline.back(),Some(TimedInstruction{ + instruction:PhysicsInputInstruction::ReplaceMouse(_,_), + .. + })) + // or if the last instruction is a SetNextMouse instruction // and there is 2 or more instructions - 1