hedgewars/uLandGraphics.pas
changeset 10374 c7ef47665410
parent 10368 7ebb71a36e95
child 10378 c2b976d6c4f1
--- a/hedgewars/uLandGraphics.pas	Sat Aug 02 02:42:12 2014 +0200
+++ b/hedgewars/uLandGraphics.pas	Sat Aug 02 15:11:13 2014 +0400
@@ -663,12 +663,12 @@
                 if (outOfMap and 
                    ((cpY + y) < LAND_HEIGHT) and ((cpY + y) >= 0) and
                    ((cpX + x) < LAND_WIDTH) and ((cpX + x) >= 0) and
-                   ((not force) or (Land[cpY + y, cpX + x] <> 0))) or
+                   ((not force) and (Land[cpY + y, cpX + x] <> 0))) or
 
                    (not outOfMap and
                        (((cpY + y) <= Longint(topY)) or ((cpY + y) >= LAND_HEIGHT) or
                        ((cpX + x) <= Longint(leftX)) or ((cpX + x) >= Longint(rightX)) or 
-                       ((not force) or (Land[cpY + y, cpX + x] <> 0)))) then
+                       ((not force) and (Land[cpY + y, cpX + x] <> 0)))) then
                    begin
                    if SDL_MustLock(Image) then
                        SDL_UnlockSurface(Image);