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:
@@ -88,7 +88,7 @@ namespace OpenRA.Mods.RA.Effects
|
||||
|
||||
if (info.Image != null)
|
||||
{
|
||||
anim = new Animation(info.Image, () => facing);
|
||||
anim = new Animation(args.SourceActor.World, info.Image, () => facing);
|
||||
anim.PlayRepeating("idle");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user