Convert IonCannon to world coords.

This commit is contained in:
Paul Chote
2013-07-06 19:25:34 +12:00
parent 2a0eff2ed0
commit e741e83fd4
2 changed files with 3 additions and 4 deletions

View File

@@ -34,12 +34,10 @@ namespace OpenRA.Mods.Cnc.Effects
public IEnumerable<IRenderable> Render(WorldRenderer wr)
{
yield return new SpriteRenderable(anim.Image,
target.CenterLocation.ToFloat2() - new float2(0, 0.5f*anim.Image.size.Y - Game.CellSize),
wr.Palette("effect"), (int)target.CenterLocation.Y);
yield return new SpriteRenderable(anim.Image, target.CenterPosition, 1, wr.Palette("effect"), 1.0f);
}
void Finish( World world )
void Finish(World world)
{
world.AddFrameEndTask(w => w.Remove(this));
Combat.DoExplosion(firedBy, "IonCannon", target.CenterLocation, 0);

View File

@@ -223,6 +223,7 @@ ionsfx:
idle:
Start: 0
Length: *
Offset: 0, -78
bomblet:
idle: