Fix 8-frame glitch
This commit is contained in:
@@ -196,14 +196,16 @@ namespace OpenRA.FileFormats
|
|||||||
|
|
||||||
// Partial compressed frame-modifier
|
// Partial compressed frame-modifier
|
||||||
case "CBPZ":
|
case "CBPZ":
|
||||||
var bytes = reader.ReadBytes(subchunkLength);
|
// Partial buffer is full; dump and recreate
|
||||||
foreach (var b in bytes) newcbfFormat80.Add(b);
|
if (cbpCount == cbParts)
|
||||||
if (++cbpCount == cbParts) // Update the frame-modifier
|
|
||||||
{
|
{
|
||||||
Format80.DecodeInto( newcbfFormat80.ToArray(), cbf );
|
Format80.DecodeInto( newcbfFormat80.ToArray(), cbf );
|
||||||
cbpCount = 0;
|
cbpCount = 0;
|
||||||
newcbfFormat80.Clear();
|
newcbfFormat80.Clear();
|
||||||
}
|
}
|
||||||
|
var bytes = reader.ReadBytes(subchunkLength);
|
||||||
|
foreach (var b in bytes) newcbfFormat80.Add(b);
|
||||||
|
cbpCount++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Palette
|
// Palette
|
||||||
|
|||||||
Reference in New Issue
Block a user