Don't use a static variable for player palette preview.

This commit is contained in:
Paul Chote
2011-05-13 16:36:33 +12:00
parent 1526b6ff37
commit 3e2a49934c
2 changed files with 8 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ namespace OpenRA.Mods.Cnc
{
CncColorPickerPaletteModifierInfo Info;
PaletteFormat format;
public ColorRamp Ramp;
public CncColorPickerPaletteModifier(CncColorPickerPaletteModifierInfo info) { Info = info; }
@@ -42,7 +43,7 @@ namespace OpenRA.Mods.Cnc
public void AdjustPalette(Dictionary<string, Palette> palettes)
{
palettes["colorpicker"] = new Palette(palettes["colorpicker"],
new PlayerColorRemap(CncLobbyLogic.CurrentColorPreview, format));
new PlayerColorRemap(Ramp, format));
}
}
}