mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
moved back to the top
This commit is contained in:
parent
9fcf8342f0
commit
b086c276ad
@ -30,6 +30,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
|
||||
public override double DifficultyValue()
|
||||
{
|
||||
double difficulty = 0;
|
||||
double weight = 1;
|
||||
|
||||
// Sections with 0 strain are excluded to avoid worst-case time complexity of the following sort (e.g. /b/2351871).
|
||||
@ -45,8 +46,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
strains[i] *= Interpolation.Lerp(ReducedStrainBaseline, 1.0, scale);
|
||||
}
|
||||
|
||||
double difficulty = 0;
|
||||
|
||||
// Difficulty is the weighted sum of the highest strains from every section.
|
||||
// We're sorting from highest to lowest strain.
|
||||
foreach (double strain in strains.OrderDescending())
|
||||
|
Loading…
Reference in New Issue
Block a user