mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08: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()
|
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)];
|
||||||
|
Loading…
Reference in New Issue
Block a user