mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
fixed an error with extremely short maps
This commit is contained in:
@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
|||||||
List<double> strains = GetCurrentStrainPeaks().OrderByDescending(d => d).ToList();
|
List<double> strains = GetCurrentStrainPeaks().OrderByDescending(d => d).ToList();
|
||||||
|
|
||||||
// We are reducing the highest strains first to account for extreme difficulty spikes
|
// We are reducing the highest strains first to account for extreme difficulty spikes
|
||||||
for (int i = 0; i < ReducedSectionCount; i++)
|
for (int i = 0; i < Math.Min(strains.Count, ReducedSectionCount); i++)
|
||||||
{
|
{
|
||||||
strains[i] *= ReducedStrainBaseline
|
strains[i] *= ReducedStrainBaseline
|
||||||
+ Math.Log10(Interpolation.Lerp(1, 10, Math.Clamp((float)i / ReducedSectionCount, 0, 1)))
|
+ Math.Log10(Interpolation.Lerp(1, 10, Math.Clamp((float)i / ReducedSectionCount, 0, 1)))
|
||||||
|
Reference in New Issue
Block a user