more cleanup

This commit is contained in:
Chris Forbes
2010-04-01 21:00:33 +13:00
parent 1f1e748f1b
commit c5fdda9141
6 changed files with 46 additions and 72 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA
return xs.Aggregate(1f, (a, x) => a * x);
}
public static NewWeaponInfo GetPrimaryWeapon(this Actor self)
public static WeaponInfo GetPrimaryWeapon(this Actor self)
{
var info = self.Info.Traits.GetOrDefault<AttackBaseInfo>();
if (info == null) return null;
@@ -55,7 +55,7 @@ namespace OpenRA
return Rules.Weapons[weapon.ToLowerInvariant()];
}
public static NewWeaponInfo GetSecondaryWeapon(this Actor self)
public static WeaponInfo GetSecondaryWeapon(this Actor self)
{
var info = self.Info.Traits.GetOrDefault<AttackBaseInfo>();
if (info == null) return null;