equal
deleted
inserted
replaced
10 -- continue to fix/improve old/broken/incompatible maps, and add more maps. |
10 -- continue to fix/improve old/broken/incompatible maps, and add more maps. |
11 -- add ufo fuel per map |
11 -- add ufo fuel per map |
12 |
12 |
13 |
13 |
14 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
14 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
|
15 HedgewarsScriptLoad("/Scripts/Utils.lua") |
15 |
16 |
16 techX = {} |
17 techX = {} |
17 techY = {} |
18 techY = {} |
18 techCount = 1 |
19 techCount = 1 |
19 |
20 |
90 function onPreviewInit() |
91 function onPreviewInit() |
91 if HedgeEditor == true then |
92 if HedgeEditor == true then |
92 return |
93 return |
93 end |
94 end |
94 |
95 |
|
96 if MapGen == mgDrawn then |
|
97 eraseMap(false) |
|
98 else |
|
99 MapGen = mgDrawn |
|
100 end |
|
101 |
95 if mapID == nil then |
102 if mapID == nil then |
96 mapID = 2 + GetRandom(7) |
103 mapID = 2 + GetRandom(7) |
97 end |
104 end |
98 |
105 |
99 MapGen = mgDrawn |
|
100 TemplateFilter = 0 |
106 TemplateFilter = 0 |
101 |
107 |
102 for x = 1, 16 do |
108 for x = 1, 16 do |
103 AddPoint(x*100,100,5) |
109 AddPoint(x*100,100,5) |
104 end |
110 end |