hedgewars/uLand.pas
changeset 7613 ce6ead3327b2
parent 7574 b9ec869e624a
parent 7594 5f03595335e6
child 7687 c73fd8cfa7c0
--- a/hedgewars/uLand.pas	Thu Aug 23 19:47:38 2012 +0200
+++ b/hedgewars/uLand.pas	Mon Aug 27 17:40:16 2012 +0200
@@ -286,6 +286,11 @@
         3: SelectTemplate:= LargeTemplates[getrandom(Succ(High(LargeTemplates)))];
         4: SelectTemplate:= CavernTemplates[getrandom(Succ(High(CavernTemplates)))];
         5: SelectTemplate:= WackyTemplates[getrandom(Succ(High(WackyTemplates)))];
+// For lua only!
+        6: begin
+           SelectTemplate:= min(LuaTemplateNumber,High(EdgeTemplates));
+           GetRandom(2) // burn 1
+           end;
     end;
 
     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));
@@ -610,7 +615,7 @@
             if Land[y, x] <> 0 then
                 begin
                 inc(c);
-                if c > 200 then // avoid accidental triggering
+                if c > 1000 then // avoid accidental triggering
                     begin
                     hasBorder:= true;
                     break;