diff --git a/OpenRa.Game/SupportPowers/GpsSatellite.cs b/OpenRa.Game/SupportPowers/GpsSatellite.cs index 671fb5d410..083b352cb1 100644 --- a/OpenRa.Game/SupportPowers/GpsSatellite.cs +++ b/OpenRa.Game/SupportPowers/GpsSatellite.cs @@ -11,26 +11,22 @@ namespace OpenRa.Game.SupportPowers public void OnFireNotification(Actor a, int2 xy) { } public void IsChargingNotification(SupportPower p) { } public void IsReadyNotification(SupportPower p) - { - // Power is auto-activated - Activate(p); - } - - public void Activate(SupportPower p) { var launchSite = Game.world.Actors - .FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains() ); + .FirstOrDefault(a => a.Owner == p.Owner && a.traits.Contains()); if (launchSite == null) return; Game.world.AddFrameEndTask(w => - { - w.Add(new SatelliteLaunch(launchSite)); - w.Add(new DelayedAction(revealDelay, () => p.Owner.Shroud.HasGPS = true)); - }); + { + w.Add(new SatelliteLaunch(launchSite)); + w.Add(new DelayedAction(revealDelay, () => p.Owner.Shroud.HasGPS = true)); + }); p.FinishActivate(); } + + public void Activate(SupportPower p) {} } }