mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Added suggestions by code inspector
This commit is contained in:
parent
9592e9778b
commit
a3945bb11d
@ -73,7 +73,7 @@ namespace osu.Game.Screens.Select
|
|||||||
private readonly List<BeatmapGroup> groups = new List<BeatmapGroup>();
|
private readonly List<BeatmapGroup> groups = new List<BeatmapGroup>();
|
||||||
|
|
||||||
private Bindable<SelectionRandomType> randomType;
|
private Bindable<SelectionRandomType> randomType;
|
||||||
private HashSet<BeatmapGroup> seenGroups = new HashSet<BeatmapGroup>();
|
private readonly HashSet<BeatmapGroup> seenGroups = new HashSet<BeatmapGroup>();
|
||||||
|
|
||||||
private readonly List<Panel> panels = new List<Panel>();
|
private readonly List<Panel> panels = new List<Panel>();
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ namespace osu.Game.Screens.Select
|
|||||||
notSeenGroups = visibleGroups;
|
notSeenGroups = visibleGroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
group = notSeenGroups[RNG.Next(notSeenGroups.Count())];
|
group = notSeenGroups[RNG.Next(notSeenGroups.Count)];
|
||||||
seenGroups.Add(group);
|
seenGroups.Add(group);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user