mirror of https://github.com/ppy/osu
Fix TestWorkingBeatmap not running for times below zero
This commit is contained in:
parent
a63bcff5cc
commit
83076e32c7
|
@ -7,7 +7,6 @@
|
|||
using osu.Framework.Timing;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Beatmaps
|
||||
{
|
||||
|
@ -68,7 +67,7 @@ public TrackVirtualManual(IFrameBasedClock referenceClock)
|
|||
|
||||
public override bool Seek(double seek)
|
||||
{
|
||||
offset = MathHelper.Clamp(seek, 0, Length);
|
||||
offset = Math.Min(seek, Length);
|
||||
lastReferenceTime = null;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue