mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 02:25:29 +08:00
Further simplify logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user