mirror of https://github.com/ppy/osu
Fix inaccurate section lengths for first hitobject
This commit is contained in:
parent
86f11777a7
commit
da97600076
|
@ -38,7 +38,7 @@ protected override DifficultyAttributes Calculate(IBeatmap beatmap, Mod[] mods,
|
|||
double sectionLength = section_length * timeRate;
|
||||
|
||||
// The first object doesn't generate a strain, so we begin with an incremented section end
|
||||
double currentSectionEnd = 2 * sectionLength;
|
||||
double currentSectionEnd = Math.Ceiling(beatmap.HitObjects.First().StartTime / sectionLength) * sectionLength;
|
||||
|
||||
foreach (OsuDifficultyHitObject h in difficultyBeatmap)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue