mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix editor animation offset time being affected by the animation speed factor
This commit is contained in:
parent
f60ae47be1
commit
d892de2b03
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue