Merge MathHelper and FloatMath
Requires space-wizards/RobustToolbox#1234
This commit is contained in:
@@ -107,7 +107,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 = FloatMath.Clamp((float)ratio, -1, 1);
|
||||
cooldownDisplay.Progress = MathHelper.Clamp((float)ratio, -1, 1);
|
||||
|
||||
if (ratio > -1f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user