.NET Standard 2.1 implements Math.Clamp , use it instead of MathHelper.Clamp from osuTK.

This commit is contained in:
Berkan Diler
2019-11-20 13:19:49 +01:00
parent a81c26577d
commit 6cab517b2d
42 changed files with 65 additions and 68 deletions

View File

@ -7,7 +7,6 @@ using osu.Framework.MathUtils;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osuTK;
namespace osu.Game.Screens.Edit
{
@ -125,7 +124,7 @@ namespace osu.Game.Screens.Edit
seekTime = nextTimingPoint.Time;
// Ensure the sought point is within the boundaries
seekTime = MathHelper.Clamp(seekTime, 0, TrackLength);
seekTime = Math.Clamp(seekTime, 0, TrackLength);
Seek(seekTime);
}
}