1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

fix MusicController ignoring Looping property of a Track

my fix to prevent the MusicController from constantly trying to restart a track before accidentally removed this
This commit is contained in:
Aergwyn 2017-12-10 13:22:46 +01:00
parent ba29e99b54
commit e629cebe31

View File

@ -251,7 +251,7 @@ namespace osu.Game.Overlays
playButton.Icon = track.IsRunning ? FontAwesome.fa_pause_circle_o : FontAwesome.fa_play_circle_o;
if (track.HasCompleted && !beatmapBacking.Disabled && playlist.BeatmapSets.Any())
if (track.HasCompleted && !track.Looping && !beatmapBacking.Disabled && playlist.BeatmapSets.Any())
next();
}
else