mirror of https://github.com/ppy/osu
Add comment about stable calculation
This commit is contained in:
parent
08f3481b59
commit
ac4290dfb6
|
@ -57,8 +57,9 @@ public DistanceObjectPatternGenerator(FastRandom random, HitObject hitObject, Ma
|
|||
beatLength = timingPoint.BeatLength / difficultyPoint.SpeedMultiplier;
|
||||
|
||||
SpanCount = repeatsData?.SpanCount() ?? 1;
|
||||
|
||||
StartTime = (int)Math.Round(hitObject.StartTime);
|
||||
|
||||
// This matches stable's calculation.
|
||||
EndTime = (int)Math.Floor(StartTime + distanceData.Distance * beatLength * SpanCount * 0.01 / beatmap.BeatmapInfo.BaseDifficulty.SliderMultiplier);
|
||||
|
||||
SegmentDuration = (EndTime - StartTime) / SpanCount;
|
||||
|
|
Loading…
Reference in New Issue