mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 03:13:21 +08: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>
|
/// <returns>A positive value indicating the position at <paramref name="time"/>.</returns>
|
||||||
private double positionAt(double time, double timeRange)
|
private double positionAt(double time, double timeRange)
|
||||||
{
|
{
|
||||||
|
if (controlPoints.Count == 0)
|
||||||
|
return time / timeRange;
|
||||||
|
|
||||||
double length = 0;
|
double length = 0;
|
||||||
|
|
||||||
// We need to consider all timing points until the specified time and not just the currently-active one,
|
// 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