rude hack to fix clashing with the translucent part of the palette

This commit is contained in:
Chris Forbes
2009-10-29 23:01:25 +13:00
parent 8e56699a42
commit c3a335cedb

View File

@@ -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