# HG changeset patch # User Wuzzy # Date 1560562026 -7200 # Node ID d97f0b96e45f86f2ee4074a77db4a3a3297047f4 # Parent af14c418c92f8c80a196df312da6299bf0a0eb99 Restrict object placement between leftX and rightX diff -r af14c418c92f -r d97f0b96e45f hedgewars/uLandObjects.pas --- a/hedgewars/uLandObjects.pas Sat Jun 15 02:50:51 2019 +0200 +++ b/hedgewars/uLandObjects.pas Sat Jun 15 03:27:06 2019 +0200 @@ -567,7 +567,7 @@ begin if Maxcnt = 0 then exit; - x:= 0; + x:= leftX; repeat y:= topY+32; // leave room for a hedgie to teleport in repeat @@ -589,7 +589,7 @@ inc(y, 3); until y >= LAND_HEIGHT - Height; inc(x, getrandom(6) + 3) - until x >= LAND_WIDTH - Width; + until x >= rightX - Width; bRes:= cnt <> 0; if bRes then begin