From 5418a139f29e7dbd4077bd502d5481b8592101e7 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 15 Mar 2023 23:20:09 +0000 Subject: [PATCH] fix diff --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 7a34c88..060b884 100644 --- a/src/render.rs +++ b/src/render.rs @@ -341,7 +341,7 @@ impl Lerp for f64 { println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change); } - if change < 1.0 && diff != 0.0 { + if (*other - self) < 2.0 && diff != 0.0 { return *other; }