Simplify expression

This commit is contained in:
AlFasGD 2018-05-12 15:09:53 +03:00
parent e44062b77a
commit 2a90686da6
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 0773d895d9aa0729995cd4a23efc28238e35ceed
Subproject commit e793a084177f53920645c4f6f70cfef91e7fd19e

View File

@ -9,6 +9,7 @@
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 @@ private void seek(int direction, bool snapped)
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);
}
}