# HG changeset patch # User unc0rr # Date 1406977873 -14400 # Node ID c7ef476654100cb2ca6102a8aa91d889d4b321aa # Parent 5e83d029e918f0de104fa37abab970566fdb8999 Oops diff -r 5e83d029e918 -r c7ef47665410 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);