From c3a335cedb61898b66812dc1c170cb3b9ab166bc Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 29 Oct 2009 23:01:25 +1300 Subject: [PATCH] rude hack to fix clashing with the translucent part of the palette --- OpenRa.FileFormats/Dune2ShpReader.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenRa.FileFormats/Dune2ShpReader.cs b/OpenRa.FileFormats/Dune2ShpReader.cs index 9591be8497..5b5a634c5f 100644 --- a/OpenRa.FileFormats/Dune2ShpReader.cs +++ b/OpenRa.FileFormats/Dune2ShpReader.cs @@ -47,6 +47,16 @@ namespace OpenRa.FileFormats for (int i = 0; i < n; i++) LookupTable[i] = reader.ReadByte(); } + else + { + LookupTable = new byte[256]; + for (int i = 0; i < 256; i++) + LookupTable[i] = (byte)i; + LookupTable[1] = 0x7f; + LookupTable[2] = 0x7e; + LookupTable[3] = 0x7d; + LookupTable[4] = 0x7c; + } } public Size Size