Merge pull request #5313 from WolfGaming/BugFixes

Fixes #5059 force fire not working on pillboxes
This commit is contained in:
Paul Chote
2014-05-14 23:23:06 +12:00

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)