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 null
parent e3e2c54c61
commit e1ce368229
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 1 additions and 1 deletions

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)