From d892de2b03242e414e68c599c8f2885bf7d503ec Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Fri, 15 Apr 2022 10:01:48 +0200 Subject: [PATCH] Fix editor animation offset time being affected by the animation speed factor --- src/game/editor/editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 4d2a2c97d..bb108999f 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -280,8 +280,9 @@ void CEditor::EnvelopeEval(int TimeOffsetMillis, int Env, float *pChannels, void } CEnvelope *e = pThis->m_Map.m_lEnvelopes[Env]; - float t = pThis->m_AnimateTime + (TimeOffsetMillis / 1000.0f); + float t = pThis->m_AnimateTime; t *= pThis->m_AnimateSpeed; + t += (TimeOffsetMillis / 1000.0f); e->Eval(t, pChannels); }