1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-23 00:13:01 +08:00

Random the difficulty too

This commit is contained in:
MrTheMake 2017-05-22 01:59:10 +02:00
parent 5ef7451dba
commit e9c2b51012

View File

@ -171,10 +171,8 @@ namespace osu.Game.Screens.Select
if (visibleGroups.Count < 1) if (visibleGroups.Count < 1)
return; return;
BeatmapGroup group = visibleGroups[RNG.Next(visibleGroups.Count)]; BeatmapGroup group = visibleGroups[RNG.Next(visibleGroups.Count)];
BeatmapPanel panel = group?.BeatmapPanels.First();
if (panel == null) BeatmapPanel panel = group.BeatmapPanels[RNG.Next(group.BeatmapPanels.Count)];
return;
selectGroup(group, panel); selectGroup(group, panel);
} }