]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix FixedPoint2.Abs multiplying the value by 100 (#28378)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Wed, 29 May 2024 08:42:15 +0000 (01:42 -0700)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 08:42:15 +0000 (18:42 +1000)
Content.Shared/FixedPoint/FixedPoint2.cs

index 33a9d25bc273fff5407a9ca1705a86f1d2716638..6439ee6c5e2d9c2b4dc7b222c59b7fe904652517 100644 (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)