mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 22:34:48 +08:00
Moved the whole looping assignments inside PlaySongSelect
This commit is contained in:
@@ -57,7 +57,9 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
beatmap?.Mods.BindTo(modSelect.SelectedMods);
|
||||
|
||||
if (Beatmap != null) Beatmap.Track.Looping = false;
|
||||
beatmapDetails.Beatmap = beatmap;
|
||||
if(beatmap != null) beatmap.Track.Looping = true;
|
||||
|
||||
base.OnBeatmapChanged(beatmap);
|
||||
}
|
||||
@@ -88,8 +90,7 @@ namespace osu.Game.Screens.Select
|
||||
if (base.OnExiting(next))
|
||||
return true;
|
||||
|
||||
if(Beatmap != null)
|
||||
Beatmap.Track.Looping = false;
|
||||
if(Beatmap != null) Beatmap.Track.Looping = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,6 @@ namespace osu.Game.Screens.Select
|
||||
trackManager.SetExclusive(track);
|
||||
if (preview)
|
||||
track.Seek(Beatmap.Metadata.PreviewTime);
|
||||
track.Looping = true;
|
||||
track.Start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user