equal
deleted
inserted
replaced
2 |
2 |
3 local ObjectList = {} |
3 local ObjectList = {} |
4 |
4 |
5 -- Overall padding for roping freedom |
5 -- Overall padding for roping freedom |
6 local Padding = 430 |
6 local Padding = 430 |
|
7 -- If true, rope assumes team color |
7 local TeamRope = false |
8 local TeamRope = false |
8 |
9 |
9 function onParameters() |
10 function onParameters() |
10 parseParams() |
11 parseParams() |
11 if params["pad"] ~= nil then |
|
12 Padding = params["pad"] |
|
13 end |
|
14 if params["teamrope"] ~= nil then |
12 if params["teamrope"] ~= nil then |
15 TeamRope = true |
13 TeamRope = true |
16 end |
14 end |
17 end |
15 end |
18 |
16 |
327 function onPreviewInit() |
325 function onPreviewInit() |
328 onGameInit() |
326 onGameInit() |
329 end |
327 end |
330 |
328 |
331 function onGameInit() |
329 function onGameInit() |
|
330 -- Calculate padding, determined by map feature size |
|
331 if MapFeatureSize <= 20 then |
|
332 -- 10 .. 710. Step size=35 |
|
333 Padding = 10 + MapFeatureSize * 35 |
|
334 else |
|
335 -- 780 .. 1060. Step size=70 |
|
336 Padding = 710 + (MapFeatureSize-20) * 70 |
|
337 end |
|
338 |
332 MapGen = mgDrawn |
339 MapGen = mgDrawn |
333 TemplateFilter = 0 |
340 TemplateFilter = 0 |
334 local TotGen = 0 |
341 local TotGen = 0 |
335 local Tries = 0 |
342 local Tries = 0 |
336 local i = 0 |
343 local i = 0 |