1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 18:53:21 +08:00

fix restarting with a different track in the same BeatmapSet

This commit is contained in:
Unknown 2019-01-26 07:29:30 +01:00
parent 3d5520d277
commit 1fa87521f6

View File

@ -399,7 +399,6 @@ namespace osu.Game.Screens.Select
{
Logger.Log($"beatmap changed from \"{Beatmap.Value.BeatmapInfo}\" to \"{beatmap}\"");
preview = beatmap?.BeatmapSetInfoID != Beatmap.Value?.BeatmapInfo.BeatmapSetInfoID;
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap, Beatmap.Value);
if (beatmap != null)
@ -411,7 +410,8 @@ namespace osu.Game.Screens.Select
}
}
if (IsCurrentScreen) ensurePlayingSelected(preview);
if (IsCurrentScreen)
ensurePlayingSelected(true);
UpdateBeatmap(Beatmap.Value);
}