From 807b52b0194f3431c749e033c2d39b20492bff30 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:49:31 +0200 Subject: [PATCH] animationmgr: warp on equal start and goal --- src/managers/AnimationManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 3b6fcc9e..b7f94b65 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -111,7 +111,7 @@ void CAnimationManager::tick() { break; } - if (SPENT >= 1.f) { + if (SPENT >= 1.f || av->m_fBegun == av->m_fGoal) { av->warp(false); break; } @@ -132,7 +132,7 @@ void CAnimationManager::tick() { break; } - if (SPENT >= 1.f) { + if (SPENT >= 1.f || av->m_vBegun == av->m_vGoal) { av->warp(false); break; } @@ -153,7 +153,7 @@ void CAnimationManager::tick() { break; } - if (SPENT >= 1.f) { + if (SPENT >= 1.f || av->m_cBegun == av->m_cGoal) { av->warp(false); break; }