mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 23:02:56 +08:00
Use TimingPointAfter for seeking check
This commit is contained in:
parent
2e11172e8e
commit
3a84409546
@ -132,7 +132,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
seekTime = timingPoint.Time + closestBeat * seekAmount;
|
seekTime = timingPoint.Time + closestBeat * seekAmount;
|
||||||
|
|
||||||
// limit forward seeking to only up to the next timing point's start time.
|
// limit forward seeking to only up to the next timing point's start time.
|
||||||
var nextTimingPoint = ControlPointInfo.TimingPoints.FirstOrDefault(t => t.Time > timingPoint.Time);
|
var nextTimingPoint = ControlPointInfo.TimingPointAfter(timingPoint.Time);
|
||||||
if (seekTime > nextTimingPoint?.Time)
|
if (seekTime > nextTimingPoint?.Time)
|
||||||
seekTime = nextTimingPoint.Time;
|
seekTime = nextTimingPoint.Time;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user