1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 17:40:24 +08:00

Clamping seekTime to beatmap length

This commit is contained in:
Marvin Schürz
2021-08-15 14:48:56 +02:00
Unverified
parent f49c9673cc
commit d287db7961
+1
View File
@@ -118,6 +118,7 @@ namespace osu.Game.Screens.Edit
if (!snapped || ControlPointInfo.TimingPoints.Count == 0)
{
seekTime = Math.Clamp(seekTime, 0, TrackLength);
SeekSmoothlyTo(seekTime);
return;
}