hedgewars/uLandObjects.pas
changeset 10490 b30b8d39d662
parent 10325 7315870716f2
child 10560 9f09196d92a6
equal deleted inserted replaced
10489:bde3e43d7b27 10490:b30b8d39d662
   370                 ar[cnt].x:= x;
   370                 ar[cnt].x:= x;
   371                 ar[cnt].y:= y;
   371                 ar[cnt].y:= y;
   372                 inc(cnt);
   372                 inc(cnt);
   373                 if cnt > MaxPointsIndex then // buffer is full, do not check the rest land
   373                 if cnt > MaxPointsIndex then // buffer is full, do not check the rest land
   374                     begin
   374                     begin
   375                     y:= 5000;
   375                     y:= LAND_HEIGHT;
   376                     x:= 5000;
   376                     x:= LAND_WIDTH;
   377                     end
   377                     end
   378                 end;
   378                 end;
   379             inc(y, 3);
   379             inc(y, 3);
   380         until y >= LAND_HEIGHT - Height;
   380         until y >= LAND_HEIGHT - Height;
   381         inc(x, getrandom(6) + 3)
   381         inc(x, getrandom(6) + 3)