hedgewars/uLandObjects.pas
changeset 4159 64e677349124
parent 3976 abaf741a4e21
child 4357 a1fcfc341a52
--- a/hedgewars/uLandObjects.pas	Sun Nov 07 16:33:42 2010 +0300
+++ b/hedgewars/uLandObjects.pas	Sun Nov 07 16:41:03 2010 +0300
@@ -292,9 +292,9 @@
                    end
                 end;
              inc(y, 3);
-         until y > int64(LAND_HEIGHT) - 1 - Height;
+         until y >= LAND_HEIGHT - Height;
          inc(x, getrandom(6) + 3)
-     until x > int64(LAND_WIDTH) - 1 - Width;
+     until x >= LAND_WIDTH - Width;
      bRes:= cnt <> 0;
      if bRes then
         begin
@@ -341,9 +341,9 @@
                 end
             end;
             inc(y, 12);
-        until y > int64(LAND_HEIGHT) - 1 - Height - 8;
+        until y >= LAND_HEIGHT - Height - 8;
         inc(x, getrandom(12) + 12)
-    until x > int64(LAND_WIDTH) - 1 - Width;
+    until x >= LAND_WIDTH - Width;
     bRes:= cnt <> 0;
     if bRes then
         begin