Skip to content

Commit

Permalink
Merge pull request #20033 from apollo-dw/speed-notes-fix
Browse files Browse the repository at this point in the history
Fix relevant note count summation in osu!'s Speed skill
  • Loading branch information
smoogipoo authored Aug 31, 2022
2 parents 837b19a + ad650ad commit 8c202ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public double RelevantNoteCount()
if (maxStrain == 0)
return 0;

return objectStrains.Aggregate((total, next) => total + (1.0 / (1.0 + Math.Exp(-(next / maxStrain * 12.0 - 6.0)))));
return objectStrains.Sum(strain => 1.0 / (1.0 + Math.Exp(-(strain / maxStrain * 12.0 - 6.0))));
}
}
}

0 comments on commit 8c202ce

Please sign in to comment.