Add comment about stable calculation

This commit is contained in:
smoogipoo 2020-10-12 15:27:33 +09:00
parent 08f3481b59
commit ac4290dfb6
1 changed files with 2 additions and 1 deletions

View File

@ -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;