🚨 Take the elevation target as a signed byte

The coordinate-based elevate overload accepted a word and silently
truncated it when writing the signed altitude byte.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent 992666583d
commit 3e562ff03d
+2 -2
View File
@@ -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);