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:
parent
df6570ebf5
commit
b9761c8196
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user