Convert IonCannon to world coords.
This commit is contained in:
@@ -34,9 +34,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
|||||||
|
|
||||||
public IEnumerable<IRenderable> Render(WorldRenderer wr)
|
public IEnumerable<IRenderable> Render(WorldRenderer wr)
|
||||||
{
|
{
|
||||||
yield return new SpriteRenderable(anim.Image,
|
yield return new SpriteRenderable(anim.Image, target.CenterPosition, 1, wr.Palette("effect"), 1.0f);
|
||||||
target.CenterLocation.ToFloat2() - new float2(0, 0.5f*anim.Image.size.Y - Game.CellSize),
|
|
||||||
wr.Palette("effect"), (int)target.CenterLocation.Y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Finish(World world)
|
void Finish(World world)
|
||||||
|
|||||||
@@ -223,6 +223,7 @@ ionsfx:
|
|||||||
idle:
|
idle:
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
|
Offset: 0, -78
|
||||||
|
|
||||||
bomblet:
|
bomblet:
|
||||||
idle:
|
idle:
|
||||||
|
|||||||
Reference in New Issue
Block a user