mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed Envelopes-Bug see: http://forum.ddnet.tw/viewtopic.php?f=5&t=2277
This commit is contained in:
parent
69fe8ec1bc
commit
a864c5c6fe
|
@ -3487,7 +3487,7 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
|
|||
// add point
|
||||
int Time = (int)(((UI()->MouseX()-View.x)*TimeScale)*1000.0f);
|
||||
float aChannels[4];
|
||||
pEnvelope->Eval(Time, aChannels);
|
||||
pEnvelope->Eval(Time/1000.0f, aChannels);
|
||||
pEnvelope->AddPoint(Time,
|
||||
f2fx(aChannels[0]), f2fx(aChannels[1]),
|
||||
f2fx(aChannels[2]), f2fx(aChannels[3]));
|
||||
|
|
Loading…
Reference in a new issue