Revert some formatting changes

This commit is contained in:
Dean Herbert
2023-01-15 22:35:44 +09:00
parent a6b6fb864e
commit f7af5a8115

View File

@ -314,8 +314,7 @@ namespace osu.Game.Screens.Select
/// Creates the buttons to be displayed in the footer. /// Creates the buttons to be displayed in the footer.
/// </summary> /// </summary>
/// <returns>A set of <see cref="FooterButton"/> and an optional <see cref="OverlayContainer"/> which the button opens when pressed.</returns> /// <returns>A set of <see cref="FooterButton"/> and an optional <see cref="OverlayContainer"/> which the button opens when pressed.</returns>
protected virtual IEnumerable<(FooterButton, OverlayContainer?)> CreateFooterButtons() => protected virtual IEnumerable<(FooterButton, OverlayContainer?)> CreateFooterButtons() => new (FooterButton, OverlayContainer?)[]
new (FooterButton, OverlayContainer?)[]
{ {
(new FooterButtonMods { Current = Mods }, ModSelect), (new FooterButtonMods { Current = Mods }, ModSelect),
(new FooterButtonRandom (new FooterButtonRandom
@ -425,8 +424,8 @@ namespace osu.Game.Screens.Select
Logger.Log($"Song select working beatmap updated to {beatmap}"); Logger.Log($"Song select working beatmap updated to {beatmap}");
if (Carousel.SelectBeatmap(beatmap.BeatmapInfo, false)) return; if (!Carousel.SelectBeatmap(beatmap.BeatmapInfo, false))
{
// A selection may not have been possible with filters applied. // A selection may not have been possible with filters applied.
// There was possibly a ruleset mismatch. This is a case we can help things along by updating the game-wide ruleset to match. // There was possibly a ruleset mismatch. This is a case we can help things along by updating the game-wide ruleset to match.
@ -445,6 +444,7 @@ namespace osu.Game.Screens.Select
Carousel.SelectBeatmap(beatmap.BeatmapInfo); Carousel.SelectBeatmap(beatmap.BeatmapInfo);
} }
}
// We need to keep track of the last selected beatmap ignoring debounce to play the correct selection sounds. // We need to keep track of the last selected beatmap ignoring debounce to play the correct selection sounds.
private BeatmapInfo? beatmapInfoPrevious; private BeatmapInfo? beatmapInfoPrevious;