mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Revert clamping logic
This commit is contained in:
parent
b4a396885d
commit
2046f64b22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user