From b90fbdf190053a1be3b3bdea962fddd23e901da0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:26:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Clamp=20drawn=20tile=20altitudes?= =?UTF-8?q?=20to=20the=20valid=20range?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drawn statics could exceed the signed altitude range and wrap around. --- Client/UActions.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/Client/UActions.pas b/Client/UActions.pas index 3020828..7af4a33 100644 --- a/Client/UActions.pas +++ b/Client/UActions.pas @@ -357,6 +357,7 @@ begin worldItem.Z := FForceZValue; if FRandomZ then worldItem.Z := worldItem.Z + Random(FRandomZValue); + worldItem.Z := EnsureRange(worldItem.Z, -128, 127); end; end;