1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Fix incorrect slider duration calculation.

This commit is contained in:
Dean Herbert 2016-11-28 17:55:19 +09:00
parent 9eb3e1168e
commit 899c341fd3

View File

@ -9,7 +9,7 @@ namespace osu.Game.Modes.Osu.Objects
{
public class Slider : OsuHitObject
{
public override double EndTime => StartTime + (RepeatCount + 1) * Curve.Length / VelocityAt(StartTime);
public override double EndTime => StartTime + RepeatCount * Curve.Length / VelocityAt(StartTime);
public double VelocityAt(double time) => 100 / Beatmap.BeatLengthAt(time, true) * Beatmap.BeatmapInfo.BaseDifficulty.SliderMultiplier;