Fix an oversight in ConvertFloatToIntPercentage

This commit is contained in:
abcdefg30
2015-08-16 23:34:12 +02:00
parent ccf184413e
commit 4c52d10aaf

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
var value = float.Parse(input, CultureInfo.InvariantCulture);
if (value < 1)
if (value <= 1)
value = (int)Math.Round(value * 100, 0);
else
value = (int)Math.Round(value, 0);