From c78ce442c6531df263a612a0af641fb150ce4ef6 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 6 Feb 2010 09:42:54 +1300 Subject: [PATCH] rude hack to make snow maps for c&c work --- OpenRa.Game/Traits/PaletteFromFile.cs | 6 +++--- mods/cnc/snow_ra.pal | Bin 0 -> 768 bytes mods/cnc/system.yaml | 11 ++++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 mods/cnc/snow_ra.pal 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 0000000000000000000000000000000000000000..bb63fcdd50490a6ace83199cf15196a1e551c57e GIT binary patch literal 768 zcmWlX>5{7;5QV#v78wGj7yAT)^T#DeE+w)r215IPWK<`0|4kh^=V|qs}{yR z)(Lb-lJ&FKUJv_zUDw@qyWJUvvA0aqv~1gUJjZc7*Y*7nAt!YFz;OeFbVv?icwh&#yrBF(A>NpHXDaS@#I@Nd0Wgd^`;d&jf%X9gAl*_evOxb)+ z$By(3u4P>FKolrvh+r4Tb`)C3H+|P|tPP!Cw7b&dNO||^+K;aZ;Qrmtqq_9sd@8#- zS6`{jlPZngKhM`~zFp3juIXx_szMa3APJ3v6y7y}eu4 z)B1pQgjK@N@^`!cj?=5{uSa#M#E|ipWGciGMU@wD2j!NV?p?gK!j0jJZs6*~z9i0h zNKzEVw&xp`9oAJKIO4gPr+X5cL9q3Gu&nX9R@1*wEl&Bg@ogWD#^JQ{VI`+=<421MGttfJm#3KaJG+