mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Use better logic
This commit is contained in:
parent
a1a077398c
commit
6d8923a37c
@ -189,22 +189,31 @@ namespace osu.Game
|
||||
{
|
||||
CloseAllOverlays(false);
|
||||
|
||||
void setBeatmap() => Beatmap.Value = BeatmapManager.GetWorkingBeatmap(beatmap.Beatmaps.First());
|
||||
void setBeatmap()
|
||||
{
|
||||
if (Beatmap.Disabled)
|
||||
{
|
||||
Schedule(setBeatmap);
|
||||
return;
|
||||
}
|
||||
|
||||
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(beatmap.Beatmaps.First());
|
||||
};
|
||||
|
||||
switch (currentScreen)
|
||||
{
|
||||
case SongSelect _:
|
||||
setBeatmap();
|
||||
break;
|
||||
default:
|
||||
// navigate to song select if we are not already there.
|
||||
var menu = (MainMenu)intro.ChildScreen;
|
||||
|
||||
menu.MakeCurrent();
|
||||
setBeatmap();
|
||||
menu.LoadToSolo();
|
||||
break;
|
||||
}
|
||||
|
||||
setBeatmap();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user