check >= on tween duration

pull/47/head
cosmonaut 2023-03-06 11:24:56 -08:00
parent e93f4f09bb
commit 96800cc348
1 changed files with 4 additions and 2 deletions

View File

@ -214,7 +214,9 @@ namespace MoonWorks.Audio
float value;
audioTween.Time += delta;
if (audioTween.Time > audioTween.Duration)
var finished = audioTween.Time >= audioTween.Duration;
if (finished)
{
value = audioTween.End;
}
@ -252,7 +254,7 @@ namespace MoonWorks.Audio
break;
}
return audioTween.Time > audioTween.Duration;
return finished;
}
internal void WakeThread()