mirror of https://github.com/ppy/osu
Give velocity a sane default value.
This commit is contained in:
parent
231b1ae610
commit
c137ee822c
|
@ -29,7 +29,7 @@ internal abstract class ConvertSlider : HitObject, IHasCurve
|
||||||
public double EndTime => StartTime + RepeatCount * Distance / Velocity;
|
public double EndTime => StartTime + RepeatCount * Distance / Velocity;
|
||||||
public double Duration => EndTime - StartTime;
|
public double Duration => EndTime - StartTime;
|
||||||
|
|
||||||
public double Velocity;
|
public double Velocity = 1;
|
||||||
|
|
||||||
public Vector2 PositionAt(double progress)
|
public Vector2 PositionAt(double progress)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue