Remove unused negativeDamage variable from AttackBase.

This commit is contained in:
Paul Chote
2019-01-22 23:38:08 +00:00
parent f1f040a361
commit 0464a0db58

View File

@@ -142,8 +142,7 @@ namespace OpenRA.Mods.Common.Traits
if (armament == null) if (armament == null)
yield break; yield break;
var negativeDamage = (armament.Weapon.Warheads.FirstOrDefault(w => (w is DamageWarhead)) as DamageWarhead).Damage < 0; yield return new AttackOrderTargeter(this, 6);
yield return new AttackOrderTargeter(this, 6, negativeDamage);
} }
} }
@@ -387,7 +386,7 @@ namespace OpenRA.Mods.Common.Traits
{ {
readonly AttackBase ab; readonly AttackBase ab;
public AttackOrderTargeter(AttackBase ab, int priority, bool negativeDamage) public AttackOrderTargeter(AttackBase ab, int priority)
{ {
this.ab = ab; this.ab = ab;
OrderID = ab.attackOrderName; OrderID = ab.attackOrderName;