hedgewars/uLand.pas
changeset 10142 adb804cb2638
parent 10131 4b4a043111f4
child 10162 38dbf26475d8
equal deleted inserted replaced
10141:3be894730bd6 10142:adb804cb2638
   392         5: SelectTemplate:= WackyTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   392         5: SelectTemplate:= WackyTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   393 // For lua only!
   393 // For lua only!
   394         6: begin
   394         6: begin
   395            SelectTemplate:= min(LuaTemplateNumber,High(EdgeTemplates));
   395            SelectTemplate:= min(LuaTemplateNumber,High(EdgeTemplates));
   396            GetRandom(2) // burn 1
   396            GetRandom(2) // burn 1
   397            end;
   397            end
   398         end
   398         end
   399     end;
   399     end;
   400 
   400 
   401     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));
   401     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));
   402 end;
   402 end;