hedgewars/uLand.pas
changeset 7569 c7d4e035cf9d
parent 7567 da2aa8355d91
child 7571 22a7bfa3e6bb
equal deleted inserted replaced
7567:da2aa8355d91 7569:c7d4e035cf9d
   283         2: SelectTemplate:= MediumTemplates[getrandom(Succ(High(MediumTemplates)))];
   283         2: SelectTemplate:= MediumTemplates[getrandom(Succ(High(MediumTemplates)))];
   284         3: SelectTemplate:= LargeTemplates[getrandom(Succ(High(LargeTemplates)))];
   284         3: SelectTemplate:= LargeTemplates[getrandom(Succ(High(LargeTemplates)))];
   285         4: SelectTemplate:= CavernTemplates[getrandom(Succ(High(CavernTemplates)))];
   285         4: SelectTemplate:= CavernTemplates[getrandom(Succ(High(CavernTemplates)))];
   286         5: SelectTemplate:= WackyTemplates[getrandom(Succ(High(WackyTemplates)))];
   286         5: SelectTemplate:= WackyTemplates[getrandom(Succ(High(WackyTemplates)))];
   287 // For lua only!
   287 // For lua only!
   288         6: SelectTemplate:= LuaTemplateNumber;
   288         6: SelectTemplate:= min(max(LuaTemplateNumber,0),Succ(High(EdgeTemplates)));
   289     end;
   289     end;
   290 
   290 
   291     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));
   291     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));
   292 end;
   292 end;
   293 
   293