From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Wed, 29 May 2024 08:42:15 +0000 (-0700) Subject: Fix FixedPoint2.Abs multiplying the value by 100 (#28378) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ffce93c3e14f7873095b43eb655e37e08bcba3c1;p=space-station-14.git Fix FixedPoint2.Abs multiplying the value by 100 (#28378) --- 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)