Remove WorldRenderer.GetPalette.

This commit is contained in:
Paul Chote
2013-02-25 18:06:47 +13:00
parent 72a9954491
commit 9bc743068a
3 changed files with 8 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ namespace OpenRA.Traits
public void InitPalette( WorldRenderer wr )
{
var paletteName = "{0}{1}".F( info.BaseName, owner.InternalName );
var newpal = new Palette(wr.GetPalette(info.BasePalette),
var newpal = new Palette(wr.Palette(info.BasePalette).Palette,
new PlayerColorRemap(info.RemapIndex, owner.ColorRamp));
wr.AddPalette(paletteName, newpal, info.AllowModifiers);
}