1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:13:31 +08:00

Further simplify logic

This commit is contained in:
voidedWarranties 2021-03-18 16:20:31 -07:00
parent df6570ebf5
commit b9761c8196

View File

@ -226,15 +226,15 @@ namespace osu.Game.Screens.Edit
{
underlyingClock.ProcessFrame();
var playbackAlreadyStopped = playbackFinished;
playbackFinished = CurrentTime >= TrackLength;
if (playbackFinished && !playbackAlreadyStopped)
if (playbackFinished)
{
if (IsRunning)
underlyingClock.Stop();
underlyingClock.Seek(TrackLength);
if (CurrentTime > TrackLength)
underlyingClock.Seek(TrackLength);
}
}