mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 11:22:54 +08:00
renamed local groups
This commit is contained in:
parent
b9e4c920c5
commit
5c5066e1ae
@ -376,10 +376,10 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void SelectRandom()
|
public void SelectRandom()
|
||||||
{
|
{
|
||||||
List<BeatmapGroup> groups = this.groups.Where( (BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
|
List<BeatmapGroup> visibleGroups = this.groups.Where((BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
|
||||||
if (groups.Count < 1)
|
if (visibleGroups.Count < 1)
|
||||||
return;
|
return;
|
||||||
BeatmapGroup group = groups[RNG.Next(groups.Count)];
|
BeatmapGroup group = visibleGroups[RNG.Next(visibleGroups.Count)];
|
||||||
BeatmapPanel panel = group?.BeatmapPanels.First();
|
BeatmapPanel panel = group?.BeatmapPanels.First();
|
||||||
if (panel == null)
|
if (panel == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user