From 1e44b51a06e177aad3543967d034b4c621c3e8e3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:26:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Apply=20random=20elevation=20off?= =?UTF-8?q?sets=20in=20raise=20and=20lower=20modes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The random offset was computed first and then overwritten by the raise and lower branches. --- Client/UActions.pas | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Client/UActions.pas b/Client/UActions.pas index d8d60c6..3020828 100644 --- a/Client/UActions.pas +++ b/Client/UActions.pas @@ -418,13 +418,12 @@ begin Continue; newZ := FZ; - if FRandomZ then - newZ := newZ + Random(FRandomZValue); - case FMode of emRaise: newZ := item.Z + FZ; emLower: newZ := item.Z - FZ; end; + if FRandomZ then + newZ := newZ + Random(FRandomZValue); newZ := EnsureRange(newZ, -128, 127);