share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 10847 b68e35d6e376
parent 10292 1c6639b49afc
child 10856 d080b8d4c114
equal deleted inserted replaced
10846:c76fd416eff6 10847:b68e35d6e376
   740     
   740     
   741     usedRope = usedWeapons[amRope] ~= nil
   741     usedRope = usedWeapons[amRope] ~= nil
   742     usedPortal = usedWeapons[amPortalGun] ~= nil
   742     usedPortal = usedWeapons[amPortalGun] ~= nil
   743     usedSaucer = usedWeapons[amJetpack] ~= nil
   743     usedSaucer = usedWeapons[amJetpack] ~= nil
   744     
   744     
       
   745     usedWeapons[amNothing] = nil
   745     usedWeapons[amRope] = nil
   746     usedWeapons[amRope] = nil
   746     usedWeapons[amPortalGun] = nil
   747     usedWeapons[amPortalGun] = nil
   747     usedWeapons[amJetpack] = nil
   748     usedWeapons[amJetpack] = nil
   748 
   749 
   749     usedOther = next(usedWeapons) ~= nil
   750     usedOther = next(usedWeapons) ~= nil
   750 
   751 
   751     if usedOther then -- smth besides skip, rope, portal or saucer used
   752     if usedOther then -- smth besides nothing, skip, rope, portal or saucer used
   752         raceType = "unknown race"
   753         raceType = "unknown race"
   753     elseif usedRope and not usedPortal and not usedSaucer then
   754     elseif usedRope and not usedPortal and not usedSaucer then
   754         raceType = "rope race"
   755         raceType = "rope race"
   755     elseif not usedRope and usedPortal and not usedSaucer then
   756     elseif not usedRope and usedPortal and not usedSaucer then
   756         raceType = "portal race"
   757         raceType = "portal race"