share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 11542 64a5ab2c4f00
parent 11012 91cc6aef818c
child 11545 86528b0cd491
equal deleted inserted replaced
11541:34a0181d5be5 11542:64a5ab2c4f00
   722     end
   722     end
   723 
   723 
   724 end
   724 end
   725 
   725 
   726 function onSpecialPoint(x,y,flag)
   726 function onSpecialPoint(x,y,flag)
       
   727     addHashData(x)
       
   728     addHashData(y)
       
   729     addHashData(flag)
   727     specialPointsX[specialPointsCount] = x
   730     specialPointsX[specialPointsCount] = x
   728     specialPointsY[specialPointsCount] = y
   731     specialPointsY[specialPointsCount] = y
   729 	specialPointsFlag[specialPointsCount] = flag
   732 	specialPointsFlag[specialPointsCount] = flag
   730     specialPointsCount = specialPointsCount + 1
   733     specialPointsCount = specialPointsCount + 1
   731 end
   734 end
  1268         raceType = "no tools race"
  1271         raceType = "no tools race"
  1269     else -- at least two of rope, portal and saucer used
  1272     else -- at least two of rope, portal and saucer used
  1270         raceType = "mixed race"
  1273         raceType = "mixed race"
  1271     end
  1274     end
  1272 
  1275 
  1273     map = detectMap()
  1276     map = detectMapWithDigest()
  1274 
  1277 
  1275     for i = 0, (numTeams-1) do
  1278     for i = 0, (numTeams-1) do
  1276         if teamScore[i] < 100000 then
  1279         if teamScore[i] < 100000 then
  1277             DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i])
  1280             DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i])
  1278         end
  1281         end