From f1211e44146f1c93e3c50a17be207670eae5ed3c Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 2 Mar 2010 23:18:36 +1300 Subject: [PATCH] Use all 'clear' variants --- OpenRA.FileFormats/Map.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenRA.FileFormats/Map.cs b/OpenRA.FileFormats/Map.cs index 627861763a..f179faf619 100644 --- a/OpenRA.FileFormats/Map.cs +++ b/OpenRA.FileFormats/Map.cs @@ -60,9 +60,9 @@ namespace OpenRA.FileFormats IniSection basic = file.GetSection("Basic"); Title = basic.GetValue("Name", "(null)"); - BinaryPart = basic.GetValue("BinaryPart", "scm01ea.bin"); + BinaryPart = basic.GetValue("BinaryPart", "scm02ea.bin"); IniSection map = file.GetSection("Map"); - Theater = Truncate(map.GetValue("Theater", "TEMPERATE"), 8); + Theater = Truncate(map.GetValue("Theater", "DESERT"), 8); XOffset = int.Parse(map.GetValue("X", "0")); YOffset = int.Parse(map.GetValue("Y", "0")); @@ -92,6 +92,9 @@ namespace OpenRA.FileFormats { MapTiles[j, i].tile = (byte)ms.ReadByte(); MapTiles[j, i].image = (byte)ms.ReadByte(); + + if( MapTiles[ j, i ].tile == 0xff ) + MapTiles[ j, i ].image = (byte)( i % 4 + ( j % 4 ) * 4 ); } }