review changes

- use doubles instead of floats
- simplify logic
This commit is contained in:
Aergwyn
2018-01-24 09:44:50 +01:00
parent 4baadfdd16
commit 52c4d22c41
5 changed files with 10 additions and 9 deletions

View File

@ -61,9 +61,9 @@ namespace osu.Game.Rulesets.Osu.Objects
public int RepeatCount { get; set; }
/// <summary>
/// The length of one repeat if any repeats are present, otherwise it equals the <see cref="Duration"/>.
/// The length of one span of this <see cref="Slider"/>.
/// </summary>
public double SpanDuration => RepeatCount > 0 ? Distance / Velocity : Duration;
public double SpanDuration => Duration / this.SpanCount();
private int stackHeight;