From 4c52d10aaf358dcab33665c8ed0bbc48b35b4de4 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 16 Aug 2015 23:34:12 +0200 Subject: [PATCH] Fix an oversight in ConvertFloatToIntPercentage --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 48570cf6ed..82c413d521 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -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);