1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 12:23:21 +08:00

Fix incorrect value being clamped

This commit is contained in:
smoogipoo 2019-05-10 18:04:58 +09:00
parent a44296a6db
commit d2479acbf2

View File

@ -115,7 +115,7 @@ namespace osu.Game.Screens.Play
{
base.Update();
float newX = (float)MathHelper.Clamp(Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, Time.Elapsed / 40), 0, UsableWidth);
float newX = (float)Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, MathHelper.Clamp(Time.Elapsed / 40, 0, 1));
fill.Width = newX;
handleBase.X = newX;