fix: circular progress no longer skips

This commit is contained in:
Tommy Volk 2024-09-29 22:17:30 -05:00
parent 75548373a7
commit 8028a0ddce

View file

@ -139,8 +139,8 @@ impl Animation {
progress: 0.0, progress: 0.0,
rotation: rotation.wrapping_add( rotation: rotation.wrapping_add(
BASE_ROTATION_SPEED.wrapping_add( BASE_ROTATION_SPEED.wrapping_add(
(f64::from(WRAP_ANGLE / (2.0 * Radians::PI)) * f64::MAX) (f64::from(WRAP_ANGLE / (2.0 * Radians::PI))
as u32, * u32::MAX as f64) as u32,
), ),
), ),
last: now, last: now,