From db5b3328bdd0bc9cc4a13f327bd9a99c2244af76 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 19 Sep 2023 00:00:06 -0700 Subject: [PATCH] update time for extern instructions --- src/body.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/body.rs b/src/body.rs index 82915ec..23e50d8 100644 --- a/src/body.rs +++ b/src/body.rs @@ -743,13 +743,13 @@ impl crate::instruction::InstructionConsumer for PhysicsStat } //selectively update body match &ins.instruction { - PhysicsInstruction::SetWalkTargetVelocity(_) => (),//TODO: queue instructions and do self.time=ins.time, + PhysicsInstruction::SetWalkTargetVelocity(_) + |PhysicsInstruction::SetControlDir(_) => self.time=ins.time,//TODO: queue instructions PhysicsInstruction::RefreshWalkTarget |PhysicsInstruction::ReachWalkTargetVelocity |PhysicsInstruction::CollisionStart(_) |PhysicsInstruction::CollisionEnd(_) |PhysicsInstruction::StrafeTick - |PhysicsInstruction::SetControlDir(_) |PhysicsInstruction::Jump => self.advance_time(ins.time), } match ins.instruction {