Rename WW-created compression formats.

This commit is contained in:
Paul Chote
2016-01-04 20:04:13 +00:00
parent 7c31f6e18e
commit 33f3e5ad47
9 changed files with 31 additions and 28 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
[Flags] enum FormatFlags : int
{
PaletteTable = 1,
SkipFormat80 = 2,
NotLCWCompressed = 2,
VariableLengthTable = 4
}
@@ -70,14 +70,14 @@ namespace OpenRA.Mods.Common.SpriteLoaders
// Decode image data
var compressed = s.ReadBytes(dataLeft);
if ((flags & FormatFlags.SkipFormat80) == 0)
if ((flags & FormatFlags.NotLCWCompressed) == 0)
{
var temp = new byte[dataSize];
Format80.DecodeInto(compressed, temp);
LCWCompression.DecodeInto(compressed, temp);
compressed = temp;
}
Format2.DecodeInto(compressed, Data, 0);
RLEZerosCompression.DecodeInto(compressed, Data, 0);
// Lookup values in lookup table
for (var j = 0; j < Data.Length; j++)