Added Cancel() to Mobile.CurrentAction. Added QueueAction to Mobile. Made Order.Apply use queue rather than SetNextAction.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenRa.Game
|
||||
if (Game.LocalPlayer == Unit.Owner)
|
||||
Game.PlaySound("ackno.r00", false);
|
||||
var mobile = Unit.traits.Get<Traits.Mobile>();
|
||||
mobile.SetNextAction( new Traits.Mobile.MoveTo( Destination ) );
|
||||
mobile.QueueAction( new Traits.Mobile.MoveTo( Destination ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user