1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 12:27:26 +08:00

adjust margin time and apply rate adjust

This commit is contained in:
TaterToes 2024-10-17 18:10:48 -04:00 committed by GitHub
parent 45dd9b1167
commit e10293531b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1102,11 +1102,13 @@ namespace osu.Game.Screens.Edit
double seekMargin = 0;
if (clock.IsRunning)
{
seekMargin = 350;
seekMargin = 450;
}
IAdjustableClock adjustableClock = clock;
var found = direction < 1
? editorBeatmap.ControlPointInfo.AllControlPoints.LastOrDefault(p => p.Time < clock.CurrentTime - seekMargin)
? editorBeatmap.ControlPointInfo.AllControlPoints.LastOrDefault(p => p.Time < clock.CurrentTime - (seekMargin * adjustableClock.Rate))
: editorBeatmap.ControlPointInfo.AllControlPoints.FirstOrDefault(p => p.Time > clock.CurrentTime);
if (found != null)