diff --git a/OpenRa.Game/Traits/PaletteFromFile.cs b/OpenRa.Game/Traits/PaletteFromFile.cs index 0e8b56435a..43cf0946c6 100644 --- a/OpenRa.Game/Traits/PaletteFromFile.cs +++ b/OpenRa.Game/Traits/PaletteFromFile.cs @@ -8,7 +8,7 @@ namespace OpenRa.Traits class PaletteFromFileInfo : ITraitInfo { public readonly string Name = null; - public readonly string Theatre = null; + public readonly string Theater = null; public readonly string Filename = null; public object Create(Actor self) { return new PaletteFromFile(self, this); } } @@ -17,8 +17,8 @@ namespace OpenRa.Traits { public PaletteFromFile(Actor self, PaletteFromFileInfo info) { - if (info.Theatre == null || - info.Theatre.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant()) + if (info.Theater == null || + info.Theater.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant()) { //Log.Write("Loading palette {0} from file {1}", info.Name, info.Filename); self.World.WorldRenderer.AddPalette(info.Name, new Palette(FileSystem.Open(info.Filename))); diff --git a/mods/cnc/snow_ra.pal b/mods/cnc/snow_ra.pal new file mode 100644 index 0000000000..bb63fcdd50 Binary files /dev/null and b/mods/cnc/snow_ra.pal differ diff --git a/mods/cnc/system.yaml b/mods/cnc/system.yaml index 324e265eb3..1778a8f392 100644 --- a/mods/cnc/system.yaml +++ b/mods/cnc/system.yaml @@ -16,11 +16,20 @@ World: UnitInfluence: PaletteFromFile@terrain_temperat: Name: terrain + Theater: temperat Filename: temperat_ra.pal PaletteFromFile@player_temperat: Name: player - Theatre: temperat + Theater: temperat Filename: temperat.pal + PaletteFromFile@terrain_snow: + Name: terrain + Theater: snow + Filename: snow_ra.pal + PaletteFromFile@player_snow: + Name: player + Theater: snow + Filename: tdbits/winter.pal PlayerColorPalette@player0: Name: player0 DisplayName: Gold