share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 11931 ace20b1d8d53
parent 11930 7123bfc9643c
child 11932 72593678e8d6
equal deleted inserted replaced
11930:7123bfc9643c 11931:ace20b1d8d53
   167 function onParameters()
   167 function onParameters()
   168     parseParams()
   168     parseParams()
   169     if params["teamrope"] ~= nil then
   169     if params["teamrope"] ~= nil then
   170         TeamRope = true
   170         TeamRope = true
   171     end
   171     end
       
   172     if params["rounds"] ~= nil then
       
   173         roundLimit = math.max(1, math.floor(tonumber(params["rounds"])))
       
   174         if type(roundLimit) ~= "number" then
       
   175              roundLimit = 3
       
   176         end
       
   177     end
   172 end
   178 end
   173 
   179 
   174 function RebuildTeamInfo()
   180 function RebuildTeamInfo()
   175 
   181 
   176 
   182