Fixes force fire not working on pillboxes

This commit is contained in:
WolfGaming
2014-05-14 01:55:47 +00:00
parent a420fa7d28
commit 018c2f0c63

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Mods.RA
{ {
readonly AutoTargetInfo info; readonly AutoTargetInfo info;
readonly AttackBase attack; readonly AttackBase attack;
readonly AttackTurreted at; readonly AttackFollow at;
[Sync] int nextScanTime = 0; [Sync] int nextScanTime = 0;
public UnitStance Stance; public UnitStance Stance;
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.RA
attack = self.Trait<AttackBase>(); attack = self.Trait<AttackBase>();
Stance = info.InitialStance; Stance = info.InitialStance;
PredictedStance = Stance; PredictedStance = Stance;
at = self.TraitOrDefault<AttackTurreted>(); at = self.TraitOrDefault<AttackFollow>();
} }
public void ResolveOrder(Actor self, Order order) public void ResolveOrder(Actor self, Order order)