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:
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Render
|
||||
{
|
||||
var rs = self.Trait<RenderSprites>();
|
||||
|
||||
anim = new Animation("smoke_m");
|
||||
anim = new Animation(self.World, "smoke_m");
|
||||
rs.anims.Add("smoke", new AnimationWithOffset(anim, null, () => !isSmoking));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user