also expose MapFeatureSize in onPreviewInit
authorsheepluva
Wed, 02 Sep 2015 04:49:11 +0200 (2015-09-02)
changeset 11062 46f293e8cbfb
parent 11061 2f1efb11ddf3
child 11063 c57f815cbb14
also expose MapFeatureSize in onPreviewInit
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Wed Sep 02 04:25:24 2015 +0200
+++ b/hedgewars/uScript.pas	Wed Sep 02 04:49:11 2015 +0200
@@ -2667,6 +2667,7 @@
 ScriptSetInteger('TemplateFilter', cTemplateFilter);
 ScriptSetInteger('TemplateNumber', LuaTemplateNumber);
 ScriptSetInteger('MapGen', ord(cMapGen));
+ScriptSetInteger('MapFeatureSize', cFeatureSize);
 
 ScriptCall('onPreviewInit');
 
@@ -2675,6 +2676,7 @@
 cTemplateFilter  := ScriptGetInteger('TemplateFilter');
 LuaTemplateNumber:= ScriptGetInteger('TemplateNumber');
 cMapGen          := TMapGen(ScriptGetInteger('MapGen'));
+cFeatureSize     := ScriptGetInteger('MapFeatureSize');
 end;
 
 procedure ScriptOnGameInit;