From f4c6c6ee583abb9c778ff6221709afcd7f095f88 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Oct 2023 17:38:00 -0700 Subject: [PATCH] fix strafe tick hole (wrong) --- src/physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics.rs b/src/physics.rs index 6c56ce6..fa7e1e5 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -924,7 +924,7 @@ impl PhysicsState { fn next_strafe_instruction(&self) -> Option> { return Some(TimedInstruction{ - time:Time::from_nanos(self.style.strafe_tick_rate.rhs_div_int(self.style.strafe_tick_rate.mul_int(self.time.nanos())+1)), + time:Time::from_nanos(self.style.strafe_tick_rate.rhs_div_int(self.style.strafe_tick_rate.mul_int(self.time.nanos()+1)+1)), //only poll the physics if there is a before and after mouse event instruction:PhysicsInstruction::StrafeTick });