1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Revert clamping logic

This commit is contained in:
Dean Herbert 2019-09-18 16:07:02 +09:00
parent b4a396885d
commit 2046f64b22

View File

@ -20,6 +20,7 @@ using osu.Game.Online.API;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Tests.Beatmaps;
using osuTK;
namespace osu.Game.Tests.Visual
{
@ -238,7 +239,7 @@ namespace osu.Game.Tests.Visual
public override bool Seek(double seek)
{
offset = Math.Min(seek, Length);
offset = MathHelper.Clamp(seek, 0, Length);
lastReferenceTime = null;
return offset == seek;