Merge pull request #4538 from peppy/fix-test-working-clock

Fix TestWorkingBeatmap not running for times below zero
This commit is contained in:
Dan Balasescu 2019-03-27 12:04:05 +09:00 committed by GitHub
commit 4e8945a2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}