Fix FixedPoint2.Abs multiplying the value by 100 (#28378)

This commit is contained in:
DrSmugleaf
2024-05-29 01:42:15 -07:00
committed by GitHub
parent c4ddc8e529
commit ffce93c3e1

View File

@@ -237,7 +237,7 @@ namespace Content.Shared.FixedPoint
public static FixedPoint2 Abs(FixedPoint2 a)
{
return FixedPoint2.New(Math.Abs(a.Value));
return FromCents(Math.Abs(a.Value));
}
public static FixedPoint2 Dist(FixedPoint2 a, FixedPoint2 b)