hedgewars/uLand.pas
changeset 2905 f3c79f7193a9
parent 2891 e1f902eb0cfe
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2904:209a0c573917 2905:f3c79f7193a9
   717 		SDL_FreeSurface(tmpsurf);
   717 		SDL_FreeSurface(tmpsurf);
   718 end;
   718 end;
   719 
   719 
   720 procedure LoadMap;
   720 procedure LoadMap;
   721 var tmpsurf: PSDL_Surface;
   721 var tmpsurf: PSDL_Surface;
   722 	s: string;
   722 	s: shortstring;
   723 	f: textfile;
   723 	f: textfile;
   724 begin
   724 begin
   725 WriteLnToConsole('Loading land from file...');
   725 WriteLnToConsole('Loading land from file...');
   726 AddProgress;
   726 AddProgress;
   727 tmpsurf:= LoadImage(Pathz[ptMapCurrent] + '/map', ifAlpha or ifCritical or ifTransparent or ifIgnoreCaps);
   727 tmpsurf:= LoadImage(Pathz[ptMapCurrent] + '/map', ifAlpha or ifCritical or ifTransparent or ifIgnoreCaps);