tidy derp in CncColorPickerPaletteModifier

This commit is contained in:
Chris Forbes
2011-10-06 23:17:00 +13:00
parent 2bc260c833
commit b9e22f50ed

View File

@@ -33,8 +33,7 @@ namespace OpenRA.Mods.Cnc
public void InitPalette( WorldRenderer wr ) public void InitPalette( WorldRenderer wr )
{ {
var info = Rules.Info["player"].Traits.WithInterface<PlayerColorPaletteInfo>() var info = Rules.Info["player"].Traits.WithInterface<PlayerColorPaletteInfo>()
.Where(p => p.BaseName == Info.PlayerPalette) .First(p => p.BaseName == Info.PlayerPalette);
.First();
format = info.PaletteFormat; format = info.PaletteFormat;
wr.AddPalette("colorpicker", wr.GetPalette(info.BasePalette)); wr.AddPalette("colorpicker", wr.GetPalette(info.BasePalette));
} }