hedgewars/uLand.pas
changeset 35 9367f246fb5f
parent 27 c374fe590272
child 37 2b7f2a43b999
--- a/hedgewars/uLand.pas	Wed Dec 28 23:34:22 2005 +0000
+++ b/hedgewars/uLand.pas	Sat Dec 31 13:45:09 2005 +0000
@@ -257,7 +257,7 @@
 var tmpsurf: PSDL_Surface;
     r: TSDL_Rect;
 begin
-tmpsurf:= LoadImage(Pathz[ptThemeCurrent] + 'LandTex.png');
+tmpsurf:= LoadImage(Pathz[ptThemeCurrent] + 'LandTex.png', false);
 r.y:= 0;
 while r.y < 1024 do
       begin
@@ -283,7 +283,7 @@
     r, rr: TSDL_Rect;
     x, yd, yu: integer;
 begin
-tmpsurf:= LoadImage(Pathz[ptThemeCurrent] + 'Border.png');
+tmpsurf:= LoadImage(Pathz[ptThemeCurrent] + 'Border.png', false);
 for x:= 0 to 2047 do
     begin
     yd:= 1023;
@@ -483,13 +483,13 @@
 TryDo(p <> nil, 'No teams on map!', true);
 with PixelFormat^ do
      LandSurface:= SDL_CreateRGBSurface(SDL_HWSURFACE, 2048, 1024, BitsPerPixel, RMask, GMask, BMask, 0);
-tmpsurf:= LoadImage(Pathz[ptForts] + p.FortName + 'L.png');
+tmpsurf:= LoadImage(Pathz[ptForts] + p.FortName + 'L.png', false);
 BlitImageAndGenerateCollisionInfo(0, 0, tmpsurf, LandSurface);
 SDL_FreeSurface(tmpsurf);
 LoadFortPoints(p.FortName, false, TeamSize(p));
 p:= p.Next;
 TryDo(p <> nil, 'Only one team on map!', true);
-tmpsurf:= LoadImage(Pathz[ptForts] + p.FortName + 'R.png');
+tmpsurf:= LoadImage(Pathz[ptForts] + p.FortName + 'R.png', false);
 BlitImageAndGenerateCollisionInfo(1024, 0, tmpsurf, LandSurface);
 SDL_FreeSurface(tmpsurf);
 LoadFortPoints(p.FortName, true, TeamSize(p));