share/hedgewars/Data/Scripts/TechMaps.lua
changeset 11637 45316b6eb4a0
parent 11013 594a84819c78
child 12933 e65aa3c3d4e6
equal deleted inserted replaced
11074:722567479fab 11637:45316b6eb4a0
    86 function PreviewPlacedGear(x, y)
    86 function PreviewPlacedGear(x, y)
    87 	AddPoint(x,y,2)
    87 	AddPoint(x,y,2)
    88 end
    88 end
    89 
    89 
    90 function onPreviewInit()
    90 function onPreviewInit()
       
    91 	if HedgeEditor == true then
       
    92 		return
       
    93 	end
    91 
    94 
    92 	if mapID == nil then
    95 	if mapID == nil then
    93 		mapID = 2 + GetRandom(7)
    96 		mapID = 2 + GetRandom(7)
    94 	end
    97 	end
    95 
    98