Oops
authorunc0rr
Sat, 02 Aug 2014 15:11:13 +0400
changeset 10374 c7ef47665410
parent 10373 5e83d029e918
child 10375 6d6adccd0d7d
Oops
hedgewars/uLandGraphics.pas
--- 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);