🚨 Clamp drawn tile altitudes to the valid range
Drawn statics could exceed the signed altitude range and wrap around.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user