1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 11:22:54 +08:00

SelectRandom doesnt select hidden groups now

This commit is contained in:
Jorolf 2017-03-03 21:11:38 +01:00
parent 4888d8568c
commit b9e4c920c5

View File

@ -376,6 +376,7 @@ namespace osu.Game.Screens.Select
public void SelectRandom() public void SelectRandom()
{ {
List<BeatmapGroup> groups = this.groups.Where( (BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
if (groups.Count < 1) if (groups.Count < 1)
return; return;
BeatmapGroup group = groups[RNG.Next(groups.Count)]; BeatmapGroup group = groups[RNG.Next(groups.Count)];