Attacking is working again

This commit is contained in:
alzeih
2010-07-22 13:07:15 +12:00
parent 73b6eb568b
commit 3395f97b20
3 changed files with 3 additions and 1 deletions

View File

@@ -135,8 +135,8 @@ namespace OpenRA.Mods.RA
return false;
var weapon = Rules.Weapons[weaponName.ToLowerInvariant()];
if (weapon.Range * weapon.Range < (target.CenterLocation - self.Location).LengthSquared) return false;
//if (weapon.Range * weapon.Range < (target.CenterLocation - self.Location).LengthSquared) return false;
if (!Combat.WeaponValidForTarget(weapon, target)) return false;
var numOffsets = (localOffset.Length + 2) / 3;