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);