move action has return-to-base

This commit is contained in:
Chris Forbes
2009-12-29 20:21:44 +13:00
parent 77e1b5ba8c
commit b3ec936497

View File

@@ -8,9 +8,7 @@ namespace OpenRa.Game.Traits
{
class Plane : IOrder, IMovement
{
public Plane(Actor self)
{
}
public Plane(Actor self) {}
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
@@ -30,7 +28,8 @@ namespace OpenRa.Game.Traits
if (order.OrderString == "Move")
{
self.CancelActivity();
self.QueueActivity(new Circle(order.TargetLocation));
self.QueueActivity(new Fly(Util.CenterOfCell(order.TargetLocation)));
self.QueueActivity(new ReturnToBase(self, null));
}
if (order.OrderString == "Enter")