Fix RoundToLevels not working with an even amount of levels if the threshold is the same (#21863)

This commit is contained in:
DrSmugleaf
2023-12-02 20:35:39 +01:00
committed by Debug
parent 6a3f9e8394
commit f79746e016
+1 -1
View 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);
}