]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix RoundToLevels not working with an even amount of levels if the threshold is the...
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Sat, 2 Dec 2023 16:46:01 +0000 (08:46 -0800)
committerGitHub <noreply@github.com>
Sat, 2 Dec 2023 16:46:01 +0000 (11:46 -0500)
Content.Shared/Rounding/ContentHelpers.cs

index 65fcb7e367cc9fd00389be1673ca693fb7937a6f..b1525ed4ee658ebffd61be9153737cb9a1302f40 100644 (file)
@@ -48,7 +48,7 @@
             }
 
             var preround = toOne * (levels - 1);
-            if (toOne <= threshold || levels <= 2)
+            if (toOne < threshold || levels <= 2)
             {
                 return (int) Math.Ceiling(preround);
             }