Remove this parameter from FloatMath.Clamp.

That was a stupid idea.
This commit is contained in:
Pieter-Jan Briers
2020-08-12 21:15:26 +02:00
parent f182ff5613
commit e76003948b
5 changed files with 5 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ namespace Content.Client.UserInterface
var progress = (_gameTiming.CurTime - start).TotalSeconds / length;
var ratio = (progress <= 1 ? (1 - progress) : (_gameTiming.CurTime - end).TotalSeconds * -5);
cooldownDisplay.Progress = (float)ratio.Clamp(-1, 1);
cooldownDisplay.Progress = FloatMath.Clamp((float)ratio, -1, 1);
if (ratio > -1f)
{