hedgewars/uLand.pas
changeset 7575 f415b3e0f3b9
parent 7571 22a7bfa3e6bb
child 7591 d9ff60e0a390
--- a/hedgewars/uLand.pas	Tue Aug 21 21:46:05 2012 -0400
+++ b/hedgewars/uLand.pas	Wed Aug 22 11:42:42 2012 -0400
@@ -285,7 +285,10 @@
         4: SelectTemplate:= CavernTemplates[getrandom(Succ(High(CavernTemplates)))];
         5: SelectTemplate:= WackyTemplates[getrandom(Succ(High(WackyTemplates)))];
 // For lua only!
-        6: SelectTemplate:= min(max(LuaTemplateNumber,0),High(EdgeTemplates));
+        6: begin
+           SelectTemplate:= min(max(LuaTemplateNumber,0),High(EdgeTemplates));
+           GetRandom(2) // burn 1
+           end;
     end;
 
     WriteLnToConsole('Selected template #'+inttostr(SelectTemplate)+' using filter #'+inttostr(cTemplateFilter));