1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 05:42:56 +08:00

fixed CI (again)

This commit is contained in:
Givikap120 2024-10-12 19:08:20 +03:00
parent 0b8cd01deb
commit af79962c08

View File

@ -130,19 +130,20 @@ namespace osu.Game.Rulesets.Difficulty.Skills
// We're saving only the largest 200 strains
int excessStrainsCount = savedSortedStrains.Count - MaxStrainCount;
if (MaxStrainCount > 0 && excessStrainsCount > 0)
{
savedSortedStrains.RemoveRange(savedSortedStrains.Count - excessStrainsCount, excessStrainsCount);
}
var strainsWithCurrent = new SortedList<double>((double a, double b) => { return a < b ? 1 : (a > b ? -1 : 0); });
var strainsWithCurrent = new SortedList<double>((a, b) => a < b ? 1 : (a > b ? -1 : 0));
strainsWithCurrent.AddRange(savedSortedStrains);
strainsWithCurrent.Add(currentSectionPeak);
return strainsWithCurrent;
}
private SortedList<double> savedSortedStrains = new SortedList<double>((double a, double b) => { return a < b ? 1 : (a > b ? -1 : 0); });
private int amountOfStrainsAddedSinceSave = 0;
private readonly SortedList<double> savedSortedStrains = new SortedList<double>((a, b) => a < b ? 1 : (a > b ? -1 : 0));
private int amountOfStrainsAddedSinceSave;
}
}