hack in stop order support to various classes. not happy with this.

This commit is contained in:
Chris Forbes
2010-12-06 21:00:06 +13:00
parent 8b82df8298
commit 25ebdea758
5 changed files with 30 additions and 1 deletions

View File

@@ -53,6 +53,14 @@ namespace OpenRA.Mods.RA
return new AttackActivity( newTarget );
}
public override void ResolveOrder(Actor self, Order order)
{
base.ResolveOrder(self, order);
if (order.OrderString == "Stop")
target = Target.None;
}
bool buildComplete = false;
public void BuildingComplete(Actor self) { buildComplete = true; }