share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 15964 d18261ddac4a
parent 15788 acf70c44065b
child 15970 a803428704fd
equal deleted inserted replaced
15963:cf5c7fa71134 15964:d18261ddac4a
   680 	parseParams()
   680 	parseParams()
   681 	mapID = tonumber(params["m"])
   681 	mapID = tonumber(params["m"])
   682 
   682 
   683 	roundLimit = tonumber(params["rounds"])
   683 	roundLimit = tonumber(params["rounds"])
   684 
   684 
   685 	if (roundLimit == 0) or (roundLimit == nil) then
   685 	if roundLimit == nil then
   686 		roundLimit = 3
   686 		roundLimit = 3
   687 	end
   687 	end
       
   688 	roundLimit = math.max(1, math.floor(roundLimit))
   688 
   689 
   689 	if mapID == nil then
   690 	if mapID == nil then
   690 		mapID = 2 + GetRandom(7)
   691 		mapID = 2 + GetRandom(7)
   691 	end
   692 	end
   692 
   693