From ffce93c3e14f7873095b43eb655e37e08bcba3c1 Mon Sep 17 00:00:00 2001 From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Wed, 29 May 2024 01:42:15 -0700 Subject: [PATCH] Fix FixedPoint2.Abs multiplying the value by 100 (#28378) --- Content.Shared/FixedPoint/FixedPoint2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/FixedPoint/FixedPoint2.cs b/Content.Shared/FixedPoint/FixedPoint2.cs index 33a9d25bc2..6439ee6c5e 100644 --- a/Content.Shared/FixedPoint/FixedPoint2.cs +++ b/Content.Shared/FixedPoint/FixedPoint2.cs @@ -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)