Convert CrateEffect to world coordinates.
This commit is contained in:
@@ -19,13 +19,6 @@ namespace OpenRA.Mods.RA.Effects
|
||||
{
|
||||
Actor a;
|
||||
Animation anim = new Animation("crate-effects");
|
||||
float2 offset = new float2(-4,0);
|
||||
|
||||
public CrateEffect(Actor a, string seq, int2 offset)
|
||||
: this(a, seq)
|
||||
{
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public CrateEffect(Actor a, string seq)
|
||||
{
|
||||
@@ -43,8 +36,7 @@ namespace OpenRA.Mods.RA.Effects
|
||||
{
|
||||
if (a.IsInWorld)
|
||||
yield return new SpriteRenderable(anim.Image,
|
||||
a.CenterLocation.ToFloat2() + offset,
|
||||
wr.Palette("effect"), (int)a.CenterLocation.Y);
|
||||
a.CenterPosition, 0, wr.Palette("effect"), 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user