hedgewars/uLand.pas
changeset 1183 540cea859395
parent 1182 e2e13aa055c1
child 1190 73ec31d8bb6f
--- a/hedgewars/uLand.pas	Fri Aug 08 20:13:32 2008 +0000
+++ b/hedgewars/uLand.pas	Fri Aug 08 20:33:57 2008 +0000
@@ -367,7 +367,7 @@
          pa.ar[i].x:= BasePoints^[i].x + LongInt(GetRandom(BasePoints^[i].w));
          pa.ar[i].y:= BasePoints^[i].y + LongInt(GetRandom(BasePoints^[i].h))
          end;
-         
+
      if canMirror then
         if getrandom(2) = 0 then
            begin
@@ -553,11 +553,11 @@
 TryDo(ClansCount = 2, 'More or less than 2 clans on map in forts mode!', true);
 
 tmpsurf:= LoadImage(Pathz[ptForts] + '/' + ClansArray[0]^.Teams[0]^.FortName + 'L', true, true, true);
-BlitImageAndGenerateCollisionInfo(0, 0, tmpsurf);
+BlitImageAndGenerateCollisionInfo(0, 0, 1024, tmpsurf);
 SDL_FreeSurface(tmpsurf);
 
 tmpsurf:= LoadImage(Pathz[ptForts] + '/' + ClansArray[0]^.Teams[0]^.FortName + 'R', true, true, true);
-BlitImageAndGenerateCollisionInfo(1024, 0, tmpsurf);
+BlitImageAndGenerateCollisionInfo(1024, 0, 1024, tmpsurf);
 SDL_FreeSurface(tmpsurf);
 
 UpdateLandTexture(0, 1023)
@@ -575,7 +575,7 @@
 
 TryDo(tmpsurf^.format^.BytesPerPixel = 4, 'Map should be 32bit', true);
 
-BlitImageAndGenerateCollisionInfo(0, 0, tmpsurf);
+BlitImageAndGenerateCollisionInfo(0, 0, 2048, tmpsurf);
 SDL_FreeSurface(tmpsurf);
 
 UpdateLandTexture(0, 1023)