mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Fix sequential speed change visualiser not working with 0 control points
This commit is contained in:
parent
ee64760406
commit
2a48e0e44a
@ -93,6 +93,9 @@ namespace osu.Game.Rulesets.UI.Scrolling.Visualisers
|
||||
/// <returns>A positive value indicating the position at <paramref name="time"/>.</returns>
|
||||
private double positionAt(double time, double timeRange)
|
||||
{
|
||||
if (controlPoints.Count == 0)
|
||||
return time / timeRange;
|
||||
|
||||
double length = 0;
|
||||
|
||||
// We need to consider all timing points until the specified time and not just the currently-active one,
|
||||
|
Loading…
Reference in New Issue
Block a user