From b760a4bc656f5cf26795bd6947b727bb32eaf91e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 19 Oct 2023 15:04:29 -0700 Subject: [PATCH] idle does not advance body --- src/physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index ff9667d..35340d5 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1356,12 +1356,12 @@ impl crate::instruction::InstructionConsumer for PhysicsStat } //selectively update body match &ins.instruction { - //PhysicsInstruction::Input(InputInstruction::MoveMouse(_)) => (),//dodge time for mouse movement + PhysicsInstruction::Input(PhysicsInputInstruction::Idle)=>self.time=ins.time,//idle simply updates time PhysicsInstruction::Input(_) |PhysicsInstruction::ReachWalkTargetVelocity |PhysicsInstruction::CollisionStart(_) |PhysicsInstruction::CollisionEnd(_) - |PhysicsInstruction::StrafeTick => self.advance_time(ins.time), + |PhysicsInstruction::StrafeTick=>self.advance_time(ins.time), } match ins.instruction { PhysicsInstruction::CollisionStart(c) => {