mirror of https://github.com/ppy/osu
Rename variable
This commit is contained in:
parent
63f6269eb0
commit
87854fc4fa
|
@ -266,12 +266,12 @@ private void selectNextSet(int direction, bool skipDifficulties)
|
||||||
{
|
{
|
||||||
var visibleSets = beatmapSets.Where(s => !s.Filtered.Value).ToList();
|
var visibleSets = beatmapSets.Where(s => !s.Filtered.Value).ToList();
|
||||||
|
|
||||||
var item = visibleSets[(visibleSets.IndexOf(selectedBeatmapSet) + direction + visibleSets.Count) % visibleSets.Count];
|
var nextSet = visibleSets[(visibleSets.IndexOf(selectedBeatmapSet) + direction + visibleSets.Count) % visibleSets.Count];
|
||||||
|
|
||||||
if (skipDifficulties)
|
if (skipDifficulties)
|
||||||
select(item);
|
select(nextSet);
|
||||||
else
|
else
|
||||||
select(direction > 0 ? item.Beatmaps.First(b => !b.Filtered.Value) : item.Beatmaps.Last(b => !b.Filtered.Value));
|
select(direction > 0 ? nextSet.Beatmaps.First(b => !b.Filtered.Value) : nextSet.Beatmaps.Last(b => !b.Filtered.Value));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void selectNextDifficulty(int direction)
|
private void selectNextDifficulty(int direction)
|
||||||
|
|
Loading…
Reference in New Issue