From 91041fbea37f48a325435b2f1c730921121efef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 24 Jan 2016 17:32:23 +0100 Subject: [PATCH] no need to cast this --- OpenRA.Mods.RA/Traits/GpsWatcher.cs | 4 ++-- OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.RA/Traits/GpsWatcher.cs b/OpenRA.Mods.RA/Traits/GpsWatcher.cs index 9c6bf66f72..f1adf3b69f 100644 --- a/OpenRA.Mods.RA/Traits/GpsWatcher.cs +++ b/OpenRA.Mods.RA/Traits/GpsWatcher.cs @@ -49,9 +49,9 @@ namespace OpenRA.Mods.RA.Traits RefreshGps(atek); } - public void Launch(Actor atek, SupportPowerInfo info) + public void Launch(Actor atek, GpsPowerInfo info) { - atek.World.Add(new DelayedAction(((GpsPowerInfo)info).RevealDelay * 25, + atek.World.Add(new DelayedAction(info.RevealDelay * 25, () => { Launched = true; diff --git a/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs b/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs index 51060d28c0..612535b911 100644 --- a/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs +++ b/OpenRA.Mods.RA/Traits/SupportPowers/GpsPower.cs @@ -61,7 +61,7 @@ namespace OpenRA.Mods.RA.Traits w.Add(new SatelliteLaunch(self, info)); - owner.Launch(self, Info); + owner.Launch(self, info); }); }