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:
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.RA.Orders
|
||||
var palette = rbi.Palette ?? (Producer.Owner != null ?
|
||||
rbi.PlayerPalette + Producer.Owner.InternalName : null);
|
||||
|
||||
preview = rbi.RenderPreview(rules.Actors[Building], wr.Palette(palette));
|
||||
preview = rbi.RenderPreview(world, rules.Actors[Building], wr.Palette(palette));
|
||||
}
|
||||
|
||||
initialized = true;
|
||||
|
||||
Reference in New Issue
Block a user