🐛 Write full row byte counts when encoding land art

The land encoder passed word counts as byte counts to the stream
write, so every diamond row was truncated to half its length and
saved land tiles were unreadable.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent 8f70a5cc98
commit 2b6f684505
+2 -2
View File
@@ -258,14 +258,14 @@ begin
lineWidth := 2;
for i := 1 to 22 do
begin
FBuffer.Write(PWordArray(argbGraphic.Bits + y * 44 * 2)^[22 - i], lineWidth);
FBuffer.Write(PWordArray(argbGraphic.Bits + y * 44 * 2)^[22 - i], lineWidth * 2);
Inc(y);
Inc(lineWidth, 2);
end;
for i := 1 to 22 do
begin
Dec(lineWidth, 2);
FBuffer.Write(PWordArray(argbGraphic.Bits + y * 44 * 2)^[i - 1], lineWidth);
FBuffer.Write(PWordArray(argbGraphic.Bits + y * 44 * 2)^[i - 1], lineWidth * 2);
Inc(y);
end;
end else if FArtType = atStatic then