Fix inaccurate section lengths for first hitobject

This commit is contained in:
smoogipoo 2018-10-08 16:46:58 +09:00
parent 86f11777a7
commit da97600076
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{