mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 13:53:10 +08:00
Merge pull request #5934 from iiSaLMaN/fix-switching-ruleset-unpauses-beatmap
Ensure playing track of beatmap selected only if a track change occurred
This commit is contained in:
commit
370ac49ea5
@ -414,7 +414,11 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
Logger.Log($"beatmap changed from \"{Beatmap.Value.BeatmapInfo}\" to \"{beatmap}\"");
|
Logger.Log($"beatmap changed from \"{Beatmap.Value.BeatmapInfo}\" to \"{beatmap}\"");
|
||||||
|
|
||||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap, Beatmap.Value);
|
WorkingBeatmap previous = Beatmap.Value;
|
||||||
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap, previous);
|
||||||
|
|
||||||
|
if (this.IsCurrentScreen() && Beatmap.Value?.Track != previous?.Track)
|
||||||
|
ensurePlayingSelected();
|
||||||
|
|
||||||
if (beatmap != null)
|
if (beatmap != null)
|
||||||
{
|
{
|
||||||
@ -425,8 +429,6 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.IsCurrentScreen())
|
|
||||||
ensurePlayingSelected();
|
|
||||||
UpdateBeatmap(Beatmap.Value);
|
UpdateBeatmap(Beatmap.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user