From f31bc45947fff40125d259bd53282399509715dd Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 15 Mar 2023 23:07:51 +0000 Subject: [PATCH] account for 0 diff --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 271d345..39db773 100644 --- a/src/render.rs +++ b/src/render.rs @@ -341,7 +341,7 @@ impl Lerp for f64 { println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, change); } - if change < 0.0000001 { + if change < 0.0000001 && diff != 0.0 { return *other; }