share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua
changeset 14571 8b66de6c9fb0
parent 13215 bc95df84395f
equal deleted inserted replaced
14570:ca27e4cd15fd 14571:8b66de6c9fb0
     5 end
     5 end
     6 
     6 
     7 function onGameInit()
     7 function onGameInit()
     8     MapGen = mgDrawn
     8     MapGen = mgDrawn
     9     TemplateFilter = 0
     9     TemplateFilter = 0
       
    10     local mapComplexity = MapFeatureSize
       
    11     -- reset feature size after use, to disable scaling
       
    12     MapFeatureSize = 12
    10     fillMap(false)
    13     fillMap(false)
    11     side = 0
    14     side = 0
    12     for i = 0,1+MapFeatureSize*2 do
    15     for i = 0,1+mapComplexity*2 do
    13         if side > 3 then 
    16         if side > 3 then 
    14             size = GetRandom(4)+4
    17             size = GetRandom(4)+4
    15         else
    18         else
    16             size = GetRandom(12)+4
    19             size = GetRandom(12)+4
    17         end
    20         end