changeset 11931 | ace20b1d8d53 |
parent 11930 | 7123bfc9643c |
child 11932 | 72593678e8d6 |
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Apr 13 14:00:03 2016 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Apr 13 14:00:53 2016 +0200 @@ -169,6 +169,12 @@ if params["teamrope"] ~= nil then TeamRope = true end + if params["rounds"] ~= nil then + roundLimit = math.max(1, math.floor(tonumber(params["rounds"]))) + if type(roundLimit) ~= "number" then + roundLimit = 3 + end + end end function RebuildTeamInfo()