1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:03:01 +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() 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;