From 74af815f24081c2ace2ceb3e958c2bae5f8ae95a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 24 Jan 2010 13:46:36 +1300 Subject: [PATCH] spyplane activate --- OpenRa.Game/Traits/SpyPlanePower.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRa.Game/Traits/SpyPlanePower.cs b/OpenRa.Game/Traits/SpyPlanePower.cs index b839e419ff..31cf83bb0e 100644 --- a/OpenRa.Game/Traits/SpyPlanePower.cs +++ b/OpenRa.Game/Traits/SpyPlanePower.cs @@ -15,6 +15,11 @@ namespace OpenRa.Traits public SpyPlanePower(Actor self, SpyPlanePowerInfo info) : base(self, info) { } protected override void OnFinishCharging() { Sound.Play("spypln1.aud"); } + protected override void OnActivate() + { + Game.controller.orderGenerator = new SelectTarget(); + Sound.Play("slcttgt1.aud"); + } public void ResolveOrder(Actor self, Order order) {