hedgewars/uLand.pas
changeset 2747 7889a3a9724f
parent 2705 2b5625c4ec16
child 2866 450ca0afcd58
equal deleted inserted replaced
2746:55593f8a490b 2747:7889a3a9724f
   728 
   728 
   729 // unC0Rr - should this be passed from the GUI? I am not sure which layer does what
   729 // unC0Rr - should this be passed from the GUI? I am not sure which layer does what
   730 s:= Pathz[ptMapCurrent] + '/map.cfg';
   730 s:= Pathz[ptMapCurrent] + '/map.cfg';
   731 WriteLnToConsole('Fetching map HH limit');
   731 WriteLnToConsole('Fetching map HH limit');
   732 Assign(f, s);
   732 Assign(f, s);
       
   733 filemode:= 0; // readonly
   733 Reset(f);
   734 Reset(f);
   734 Readln(f);
   735 Readln(f);
   735 if not eof(f) then Readln(f, MaxHedgehogs);
   736 if not eof(f) then Readln(f, MaxHedgehogs);
   736 
   737 
   737 if (MaxHedgehogs = 0) then MaxHedgehogs:= 18;
   738 if (MaxHedgehogs = 0) then MaxHedgehogs:= 18;