mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 11:22:55 +08:00
Further simplify logic
This commit is contained in:
parent
df6570ebf5
commit
b9761c8196
@ -226,14 +226,14 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
underlyingClock.ProcessFrame();
|
underlyingClock.ProcessFrame();
|
||||||
|
|
||||||
var playbackAlreadyStopped = playbackFinished;
|
|
||||||
playbackFinished = CurrentTime >= TrackLength;
|
playbackFinished = CurrentTime >= TrackLength;
|
||||||
|
|
||||||
if (playbackFinished && !playbackAlreadyStopped)
|
if (playbackFinished)
|
||||||
{
|
{
|
||||||
if (IsRunning)
|
if (IsRunning)
|
||||||
underlyingClock.Stop();
|
underlyingClock.Stop();
|
||||||
|
|
||||||
|
if (CurrentTime > TrackLength)
|
||||||
underlyingClock.Seek(TrackLength);
|
underlyingClock.Seek(TrackLength);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user