From 5c61f4a79ceadbc3e1f257c3f2da58ca213de340 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 9 Jan 2010 12:07:17 +1300 Subject: [PATCH] Fix chronosphere power --- OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs | 8 ++++---- OpenRa.Game/SupportPowers/ChronospherePower.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs b/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs index 192f7a6690..ec0c0f4edf 100644 --- a/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs +++ b/OpenRa.Game/Orders/ChronosphereSelectOrderGenerator.cs @@ -9,10 +9,10 @@ namespace OpenRa.Game.Orders { class ChronosphereSelectOrderGenerator : IOrderGenerator { - ISupportPowerImpl chronospherePower; - public ChronosphereSelectOrderGenerator(ISupportPowerImpl chronospherePower) + SupportPower power; + public ChronosphereSelectOrderGenerator(SupportPower power) { - this.chronospherePower = chronospherePower; + this.power = power; } public IEnumerable Order(int2 xy, MouseInput mi) @@ -36,7 +36,7 @@ namespace OpenRa.Game.Orders var unit = underCursor != null ? underCursor.Info as UnitInfo : null; if (unit != null) - yield return new Order("ChronosphereSelect", underCursor, null, int2.Zero, "ChronoshiftPower"); + yield return new Order("ChronosphereSelect", underCursor, null, int2.Zero, power.Name); } } diff --git a/OpenRa.Game/SupportPowers/ChronospherePower.cs b/OpenRa.Game/SupportPowers/ChronospherePower.cs index bab8c671eb..e3355fb771 100644 --- a/OpenRa.Game/SupportPowers/ChronospherePower.cs +++ b/OpenRa.Game/SupportPowers/ChronospherePower.cs @@ -32,7 +32,7 @@ namespace OpenRa.Game.SupportPowers public void Activate(SupportPower p) { this.p = p; - Game.controller.orderGenerator = new ChronosphereSelectOrderGenerator(this); + Game.controller.orderGenerator = new ChronosphereSelectOrderGenerator(p); Sound.Play("slcttgt1.aud"); } }