make tunnels script use MapFeatureSize
authorwuzzy
Wed, 02 Sep 2015 05:59:21 +0200
changeset 11065 dce587dfed4f
parent 11064 884f40b6f640
child 11066 f10a4bdfa0f4
make tunnels script use MapFeatureSize
share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua	Wed Sep 02 05:52:02 2015 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Tunnels.lua	Wed Sep 02 05:59:21 2015 +0200
@@ -12,7 +12,7 @@
     end
 
     side = 0
-    for i = 0,GetRandom(15)+25 do
+    for i = 0,1+MapFeatureSize*2 do
         if side > 3 then 
             size = GetRandom(4)+4
         else