--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua Tue Jul 14 03:45:27 2015 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua Tue Jul 14 20:01:15 2015 +0900
@@ -691,6 +691,10 @@
function onGameInit()
+ if mapID == nil then
+ mapID = 2 + GetRandom(7)
+ end
+
Theme = "Cave"
MapGen = mgDrawn
--- a/share/hedgewars/Data/Scripts/TechMaps.lua Tue Jul 14 03:45:27 2015 +0200
+++ b/share/hedgewars/Data/Scripts/TechMaps.lua Tue Jul 14 20:01:15 2015 +0900
@@ -88,7 +88,12 @@
end
function onPreviewInit()
- MapGen = mgDrawn
+
+ if mapID == nil then
+ mapID = 2 + GetRandom(7)
+ end
+
+ MapGen = mgDrawn
TemplateFilter = 0
for x = 1, 16 do
@@ -1344,6 +1349,8 @@
FlushPoints()
end
+local bastard = nil
+
function LoadMap(mID)
techX = {}