changeset 139:70808ff799e6

* white space cleaup no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 13 Sep 2009 18:16:43 +0000
parents c11c0da01bbc
children 678054e2bc02
files api/Objects/UnitEquipmentNumericForRatioSelection.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/UnitEquipmentNumericForRatioSelection.cs	Sun Sep 13 18:00:52 2009 +0000
     1.2 +++ b/api/Objects/UnitEquipmentNumericForRatioSelection.cs	Sun Sep 13 18:16:43 2009 +0000
     1.3 @@ -23,8 +23,8 @@
     1.4  		
     1.5  		protected override bool IsInRange (double newValue)
     1.6  		{
     1.7 -			int minLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MinPercentage / 100, EquipmentItem.RoundNumberUp);
     1.8 -			int maxLimit = (int)IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MaxPercentage / 100, EquipmentItem.RoundNumberUp);
     1.9 +			int minLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MinPercentage / 100, EquipmentItem.RoundNumberUp);
    1.10 +			int maxLimit = (int) IBBMath.Round(EquipmentForUnit.Size * EquipmentItem.MaxPercentage / 100, EquipmentItem.RoundNumberUp);
    1.11  			newValue = (newValue == WarFoundryCore.INFINITY ? EquipmentForUnit.Size : newValue);
    1.12  			bool isInRange = (minLimit <= newValue) && (newValue <= maxLimit);
    1.13  			return isInRange && IsWholeNumber(newValue);