changeset 11012 | 91cc6aef818c |
parent 10979 | a332a60df7ce |
child 11013 | 594a84819c78 |
--- 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 = {}