sidebar on-hold/cancel works correctly

This commit is contained in:
Chris Forbes
2009-11-01 19:25:28 +13:00
parent 4336c2af35
commit b9af0d42fe
2 changed files with 40 additions and 6 deletions

View File

@@ -53,9 +53,11 @@ namespace OpenRa.Game
case "DeliverOre":
{
var mobile = order.Subject.traits.Get<Mobile>();
mobile.Cancel(order.Subject);
mobile.QueueActivity(new Mobile.MoveTo(order.TargetActor.Location + new int2(1, 2)));
mobile.QueueActivity(new Mobile.Turn(64));
/* todo: actual deliver activity! */
/* todo: actual deliver activity! [animation + add cash] */
break;
}
case "PlaceBuilding":