--- a/hedgewars/uLandGraphics.pas Sat Aug 21 17:19:52 2010 +0200
+++ b/hedgewars/uLandGraphics.pas Sat Aug 21 22:36:59 2010 +0200
@@ -618,10 +618,10 @@
begin
for x:= 0 to Pred(w) do
if PLongword(@(p^[x * 4]))^ <> 0 then
- if ((cpY + y) < Longint(topY)) or
- ((cpY + y) > LAND_HEIGHT) or
- ((cpX + x) < Longint(leftX)) or
- ((cpX + x) > Longint(rightX)) or
+ if ((cpY + y) <= Longint(topY)) or
+ ((cpY + y) >= LAND_HEIGHT) or
+ ((cpX + x) <= Longint(leftX)) or
+ ((cpX + x) >= Longint(rightX)) or
(Land[cpY + y, cpX + x] <> 0) then
begin
if SDL_MustLock(Image) then