share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua
changeset 13215 bc95df84395f
parent 11065 dce587dfed4f
child 14571 8b66de6c9fb0
--- a/share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua	Thu Mar 15 02:59:37 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua	Thu Mar 15 03:29:31 2018 +0100
@@ -1,16 +1,13 @@
+HedgewarsScriptLoad("/Scripts/Utils.lua")
 
 function onPreviewInit()
-onGameInit()
+    onGameInit()
 end
 
 function onGameInit()
     MapGen = mgDrawn
     TemplateFilter = 0
-    for i = 200,2000,600 do
-        AddPoint(1,i,63)
-        AddPoint(4000,i)
-    end
-
+    fillMap(false)
     side = 0
     for i = 0,1+MapFeatureSize*2 do
         if side > 3 then