--- a/hedgewars/uLandGraphics.pas Fri Jul 27 19:58:02 2018 +0200
+++ b/hedgewars/uLandGraphics.pas Sat Jul 28 13:15:59 2018 +0200
@@ -473,8 +473,8 @@
begin
for i:= 0 to Pred(Count) do
begin
- for ty:= Max(y - Radius, 0) to Min(y + Radius, LAND_HEIGHT) do
- for tx:= Max(0, ar^[i].Left - Radius) to Min(LAND_WIDTH, ar^[i].Right + Radius) do
+ for ty:= Max(y - Radius, 0) to Min(y + Radius, TopY) do
+ for tx:= Max(LeftX, ar^[i].Left - Radius) to Min(RightX, ar^[i].Right + Radius) do
begin
if (Land[ty, tx] and lfIndestructible) = 0 then
begin
@@ -500,8 +500,8 @@
for i:= 0 to Pred(Count) do
begin
- for ty:= Max(y - Radius, 0) to Min(y + Radius, LAND_HEIGHT) do
- for tx:= Max(0, ar^[i].Left - Radius) to Min(LAND_WIDTH, ar^[i].Right + Radius) do
+ for ty:= Max(y - Radius, 0) to Min(y + Radius, TopY) do
+ for tx:= Max(LeftX, ar^[i].Left - Radius) to Min(RightX, ar^[i].Right + Radius) do
if ((Land[ty, tx] and lfBasic) <> 0) or ((Land[ty, tx] and lfObject) <> 0) then
begin
if (cReducedQuality and rqBlurryLand) = 0 then