1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-25 23:52:54 +08:00

Fix storyboard sample playback failing when expected to play at 0ms

This commit is contained in:
Dean Herbert 2020-06-15 09:38:33 +09:00
parent a8e83c5be5
commit 978636b90c

View File

@ -51,7 +51,7 @@ namespace osu.Game.Storyboards.Drawables
LifetimeStart = sampleInfo.StartTime;
LifetimeEnd = double.MaxValue;
}
else if (Time.Current - Time.Elapsed < sampleInfo.StartTime)
else if (Time.Current - Time.Elapsed <= sampleInfo.StartTime)
{
// We've passed the start time of the sample. We only play the sample if we're within an allowable range
// from the sample's start, to reduce layering if we've been fast-forwarded far into the future