Merge branch 'master' into excess-skin-change

This commit is contained in:
Dan Balasescu 2019-02-27 20:30:18 +09:00 committed by GitHub
commit d2c2e41e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Audio
private void load()
{
track = GetTrack();
track.Completed += Stop;
track.Completed += () => Schedule(Stop);
}
/// <summary>

View File

@ -351,11 +351,11 @@ namespace osu.Game.Overlays
queuedDirection = null;
}
private void currentTrackCompleted()
private void currentTrackCompleted() => Schedule(() =>
{
if (!beatmap.Disabled && beatmapSets.Any())
if (!current.Track.Looping && !beatmap.Disabled && beatmapSets.Any())
next();
}
});
private ScheduledDelegate pendingBeatmapSwitch;