From aa3a6d07e7dce20caada3c5c06a0cacf5829d5b2 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 23 Mar 2010 19:22:30 +1300 Subject: [PATCH] fix spy plane spinning at spawn (same as badr) --- OpenRA.Mods.RA/SpyPlanePower.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.RA/SpyPlanePower.cs b/OpenRA.Mods.RA/SpyPlanePower.cs index af60553c72..e73ef62881 100644 --- a/OpenRA.Mods.RA/SpyPlanePower.cs +++ b/OpenRA.Mods.RA/SpyPlanePower.cs @@ -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().Facing = Util.GetFacing(order.TargetLocation - enterCell, 0); + plane.CancelActivity(); plane.QueueActivity(new Fly(Util.CenterOfCell(order.TargetLocation))); plane.QueueActivity(new CallFunc(