1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Restore clamp behaviour

This commit is contained in:
Dean Herbert 2020-03-06 22:44:11 +09:00
parent fa8e7adf07
commit 3295f8657a

View File

@ -241,7 +241,7 @@ namespace osu.Game.Tests.Visual
public override bool Seek(double seek)
{
accumulated = Math.Min(seek, Length);
accumulated = Math.Clamp(seek, 0, Length);
lastReferenceTime = null;
return accumulated == seek;