mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 02:23:21 +08:00
Moved the whole looping assignments inside PlaySongSelect
This commit is contained in:
parent
ec213efc49
commit
7db45cb58f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user