diff api/Objects/UnitEquipmentNumericForRatioSelection.cs @ 139:70808ff799e6

* white space cleaup no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 13 Sep 2009 18:16:43 +0000
parents 413a7a049e41
children 85dc413279a4
line wrap: on
line diff
--- a/api/Objects/UnitEquipmentNumericForRatioSelection.cs	Sun Sep 13 18:00:52 2009 +0000
+++ b/api/Objects/UnitEquipmentNumericForRatioSelection.cs	Sun Sep 13 18:16:43 2009 +0000
@@ -23,8 +23,8 @@
 		
 		protected override bool IsInRange (double newValue)
 		{
-			int minLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MinPercentage / 100, EquipmentItem.RoundNumberUp);
-			int maxLimit = (int)IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MaxPercentage / 100, EquipmentItem.RoundNumberUp);
+			int minLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MinPercentage / 100, EquipmentItem.RoundNumberUp);
+			int maxLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MaxPercentage / 100, EquipmentItem.RoundNumberUp);
 			newValue = (newValue == WarFoundryCore.INFINITY ? EquipmentForUnit.Size : newValue);
 			bool isInRange = (minLimit <= newValue) && (newValue <= maxLimit);
 			return isInRange && IsWholeNumber(newValue);