1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 19:33:01 +08:00

Use TimingPointAfter for seeking check

This commit is contained in:
OliBomby 2024-08-16 01:36:51 +02:00
parent 2e11172e8e
commit 3a84409546

View File

@ -132,7 +132,7 @@ namespace osu.Game.Screens.Edit
seekTime = timingPoint.Time + closestBeat * seekAmount;
// 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)
seekTime = nextTimingPoint.Time;