From 988f274e19a0923f7f08dd0b5bdabfb386ab1c13 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 23 Mar 2010 20:30:13 +1300 Subject: [PATCH] fix bugs in ion cannon --- OpenRA.Mods.Cnc/Effects/IonCannon.cs | 2 +- mods/cnc/system.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Effects/IonCannon.cs b/OpenRA.Mods.Cnc/Effects/IonCannon.cs index 8c1cd076fa..1fdf858f8b 100644 --- a/OpenRA.Mods.Cnc/Effects/IonCannon.cs +++ b/OpenRA.Mods.Cnc/Effects/IonCannon.cs @@ -44,7 +44,7 @@ namespace OpenRA.Mods.Cnc.Effects public IEnumerable Render() { yield return new Renderable(anim.Image, - Target - new float2(.5f * anim.Image.size.X, anim.Image.size.Y - Game.CellSize), + Util.CenterOfCell(Target) - new float2(.5f * anim.Image.size.X, anim.Image.size.Y - Game.CellSize), "effect"); } } diff --git a/mods/cnc/system.yaml b/mods/cnc/system.yaml index e136ec5c8d..7eef52ba1a 100644 --- a/mods/cnc/system.yaml +++ b/mods/cnc/system.yaml @@ -23,6 +23,7 @@ Player: BeginChargeSound: ionchrg1.aud EndChargeSound: ionredy1.aud LaunchSound: ion1.aud + SelectTargetSound: select1.aud World: ScreenShaker: