From 2b6f684505a7b6a2c384a958c3407e358ad730a9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 19:41:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Write=20full=20row=20byte=20coun?= =?UTF-8?q?ts=20when=20encoding=20land=20art?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- UOLib/UArt.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UOLib/UArt.pas b/UOLib/UArt.pas index 840376c..4693b05 100644 --- a/UOLib/UArt.pas +++ b/UOLib/UArt.pas @@ -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