mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Simplify expression
This commit is contained in:
parent
e44062b77a
commit
2a90686da6
@ -1 +1 @@
|
|||||||
Subproject commit 0773d895d9aa0729995cd4a23efc28238e35ceed
|
Subproject commit e793a084177f53920645c4f6f70cfef91e7fd19e
|
@ -9,6 +9,7 @@ using osu.Framework.Timing;
|
|||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Screens.Edit.Screens.Compose;
|
using osu.Game.Screens.Edit.Screens.Compose;
|
||||||
|
using OpenTK;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit
|
namespace osu.Game.Screens.Edit
|
||||||
{
|
{
|
||||||
@ -126,7 +127,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
seekTime = nextTimingPoint.Time;
|
seekTime = nextTimingPoint.Time;
|
||||||
|
|
||||||
// Ensure the sought point is within the boundaries
|
// Ensure the sought point is within the boundaries
|
||||||
seekTime = Math.Min(Math.Max(0, seekTime), TrackLength);
|
seekTime = MathHelper.Clamp(seekTime, 0, TrackLength);
|
||||||
Seek(seekTime);
|
Seek(seekTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user