From 3e562ff03d8fccedf8f511ae26358c6f9320d84e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:25:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Take=20the=20elevation=20target?= =?UTF-8?q?=20as=20a=20signed=20byte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The coordinate-based elevate overload accepted a word and silently truncated it when writing the signed altitude byte. --- Client/UPackets.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/UPackets.pas b/Client/UPackets.pas index 4c04efb..78d94ee 100644 --- a/Client/UPackets.pas +++ b/Client/UPackets.pas @@ -98,7 +98,7 @@ type TElevateStaticPacket = class(TStaticPacket) constructor Create(AStaticItem: TStaticItem; ANewZ: ShortInt); constructor Create(AX, AY: Word; AZ: ShortInt; ATileID: Word; AHue: Word; - ANewZ: Word); + ANewZ: ShortInt); end; { TMoveStaticPacket } @@ -282,7 +282,7 @@ begin end; constructor TElevateStaticPacket.Create(AX, AY: Word; AZ: ShortInt; - ATileID: Word; AHue: Word; ANewZ: Word); + ATileID: Word; AHue: Word; ANewZ: ShortInt); begin inherited Create($09, 11); FStream.WriteWord(AX);