Allow sprites with empty frames to pass the ShpTS checks.

This commit is contained in:
Matthias Mailänder
2017-08-21 11:01:56 +02:00
committed by abcdefg30
parent d7323e07cc
commit a8288a38f8

View File

@@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
return false;
}
// Check the size and format flag
// Check the image size and compression type format flag
// Some files define bogus frames, so loop until we find a valid one
s.Position += 4;
ushort w, h, f = 0;
@@ -114,6 +114,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
w = s.ReadUInt16();
h = s.ReadUInt16();
type = s.ReadUInt8();
s.Position += 19;
}
while (w == 0 && h == 0 && f++ < imageCount);