1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 19:24:22 +08:00

Simplify expression

This commit is contained in:
AlFasGD
2018-05-12 15:09:53 +03:00
Unverified
parent e44062b77a
commit 2a90686da6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Screens.Edit.Screens.Compose;
using OpenTK;
namespace osu.Game.Screens.Edit
{
@@ -126,7 +127,7 @@ namespace osu.Game.Screens.Edit
seekTime = nextTimingPoint.Time;
// Ensure the sought point is within the boundaries
seekTime = Math.Min(Math.Max(0, seekTime), TrackLength);
seekTime = MathHelper.Clamp(seekTime, 0, TrackLength);
Seek(seekTime);
}
}