comparison api/Objects/Unit.cs @ 90:bd2aaa9a61df

Re #50: Complete loading of core XML file * Fix remaining bugs from trying to load UnitEquipmentItem values from wrong element * Add type cast to fix infinite loop
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Aug 2009 21:40:53 +0000
parents 110a7b0bcab5
children ced5a18d9f52
comparison
equal deleted inserted replaced
89:cb3759c3ea19 90:bd2aaa9a61df
271 if (amount <1 && amount != WarFoundryCore.INFINITY) 271 if (amount <1 && amount != WarFoundryCore.INFINITY)
272 { 272 {
273 amount = 0; 273 amount = 0;
274 } 274 }
275 275
276 SetEquipmentAmount(equip, amount); 276 SetEquipmentAmount(equip, (double)amount);
277 } 277 }
278 278
279 public void SetEquipmentRatio(UnitEquipmentItem equip, double ratio) 279 public void SetEquipmentRatio(UnitEquipmentItem equip, double ratio)
280 { 280 {
281 if (!equip.IsRatioLimit) 281 if (!equip.IsRatioLimit)