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

renamed local groups

This commit is contained in:
Jorolf 2017-03-04 15:30:14 +01:00 committed by GitHub
parent b9e4c920c5
commit 5c5066e1ae

View File

@ -376,10 +376,10 @@ 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)
List<BeatmapGroup> visibleGroups = this.groups.Where((BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
if (visibleGroups.Count < 1)
return;
BeatmapGroup group = groups[RNG.Next(groups.Count)];
BeatmapGroup group = visibleGroups[RNG.Next(visibleGroups.Count)];
BeatmapPanel panel = group?.BeatmapPanels.First();
if (panel == null)
return;