Remove unused parameters.
This commit is contained in:
committed by
abcdefg30
parent
ea243b8558
commit
0e7ad43425
@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
readonly PaletteReference palette;
|
||||
|
||||
public SequencePlaceBuildingPreviewPreview(WorldRenderer wr, ActorInfo ai, SequencePlaceBuildingPreviewInfo info, TypeDictionary init)
|
||||
: base(wr, ai, info, init)
|
||||
: base(wr, ai, info)
|
||||
{
|
||||
this.info = info;
|
||||
var ownerName = init.Get<OwnerInit>().InternalName;
|
||||
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
var rsi = ai.TraitInfo<RenderSpritesInfo>();
|
||||
palette = wr.Palette(rsi.Palette ?? rsi.PlayerPalette + ownerName);
|
||||
preview = new Animation(wr.World, rsi.GetImage(ai, wr.World.Map.Rules.Sequences, faction));
|
||||
preview = new Animation(wr.World, rsi.GetImage(ai, faction));
|
||||
preview.PlayRepeating(info.Sequence);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user