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

@@ -205,6 +205,11 @@ namespace OpenRA.Mods.RA.Move
var target = order.TargetLocation.Clamp(self.World.Map.Bounds);
PerformMove(self, target, order.Queued && !self.IsIdle);
}
if (order.OrderString == "Stop")
{
self.CancelActivity();
}
}
public string VoicePhraseForOrder(Actor self, Order order)