hedgewars/uLand.pas
changeset 13506 bdac56fb6f1a
parent 13504 c41b16ac2e05
child 13754 f1c66a34f2fe
equal deleted inserted replaced
13505:d9f9e66543d7 13506:bdac56fb6f1a
   312                 dec(l, TemplateCounts[cTemplateFilter]);
   312                 dec(l, TemplateCounts[cTemplateFilter]);
   313             until l < 0;
   313             until l < 0;
   314             end else getRandom(1);
   314             end else getRandom(1);
   315 
   315 
   316         case cTemplateFilter of
   316         case cTemplateFilter of
   317         0: OutError('Ask unC0Rr about what you did wrong', true);
   317         0: OutError('Error selecting TemplateFilter. Ask unC0Rr about what you did wrong', true);
   318         1: SelectTemplate:= SmallTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   318         1: SelectTemplate:= SmallTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   319         2: SelectTemplate:= MediumTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   319         2: SelectTemplate:= MediumTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   320         3: SelectTemplate:= LargeTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   320         3: SelectTemplate:= LargeTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   321         4: SelectTemplate:= CavernTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   321         4: SelectTemplate:= CavernTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   322         5: SelectTemplate:= WackyTemplates[getrandom(TemplateCounts[cTemplateFilter])];
   322         5: SelectTemplate:= WackyTemplates[getrandom(TemplateCounts[cTemplateFilter])];