fix spy plane spinning at spawn (same as badr)

This commit is contained in:
Chris Forbes
2010-03-23 19:22:30 +13:00
parent 881b3a35fb
commit aa3a6d07e7

View File

@@ -53,6 +53,8 @@ namespace OpenRA.Mods.RA
var enterCell = self.World.ChooseRandomEdgeCell();
var plane = self.World.CreateActor("U2", enterCell, self.Owner);
plane.traits.Get<Unit>().Facing = Util.GetFacing(order.TargetLocation - enterCell, 0);
plane.CancelActivity();
plane.QueueActivity(new Fly(Util.CenterOfCell(order.TargetLocation)));
plane.QueueActivity(new CallFunc(