mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
SelectRandom doesnt select hidden groups now
This commit is contained in:
parent
4888d8568c
commit
b9e4c920c5
@ -376,6 +376,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
public void SelectRandom()
|
||||
{
|
||||
List<BeatmapGroup> groups = this.groups.Where( (BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
|
||||
if (groups.Count < 1)
|
||||
return;
|
||||
BeatmapGroup group = groups[RNG.Next(groups.Count)];
|
||||
|
Loading…
Reference in New Issue
Block a user