From 6cfdb495aea2732d9c2b8e885df807ab343c834b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 7 Sep 2023 18:34:02 -0700 Subject: [PATCH] convert loop --- src/body.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/body.rs b/src/body.rs index ff17114..1d55a95 100644 --- a/src/body.rs +++ b/src/body.rs @@ -22,7 +22,8 @@ impl PhysicsState { pub fn run(&mut self, time: TIMESTAMP, control_dir: glam::Vec3, controls: u32){ let target_tick = (time/10_000_000) as u32;//100t //the game code can run for 1 month before running out of ticks - for tick in self.tick+1..=target_tick { + while self.tick