Change animations to use the proper SequenceProvider
Remove references to the global "Game" and use the SequenceProvider of the current world/map.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRA.Effects
|
||||
public MoveFlash(WPos pos, World world)
|
||||
{
|
||||
this.pos = pos;
|
||||
anim = new Animation("moveflsh");
|
||||
anim = new Animation(world, "moveflsh");
|
||||
anim.PlayThen("idle", () => world.AddFrameEndTask(w => w.Remove(this)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user