changeset 14091 | a5be3ef4bbbe |
parent 13862 | b2cc4e4e380c |
child 14570 | ca27e4cd15fd |
14090:abb42ba345b6 | 14091:a5be3ef4bbbe |
---|---|
697 end |
697 end |
698 |
698 |
699 if mapID == nil then |
699 if mapID == nil then |
700 mapID = 2 + GetRandom(7) |
700 mapID = 2 + GetRandom(7) |
701 end |
701 end |
702 WriteLnToConsole("TechRacer: Using map "..tostring(mapID)) |
|
703 |
702 |
704 addHashData(mapID) |
703 addHashData(mapID) |
705 |
704 |
706 Theme = "Cave" |
705 Theme = "Cave" |
707 Map = "" |
706 Map = "" |
909 trackTeams() |
908 trackTeams() |
910 |
909 |
911 roundN = 0 |
910 roundN = 0 |
912 lastRound = TotalRounds |
911 lastRound = TotalRounds |
913 RoundHasChanged = false |
912 RoundHasChanged = false |
913 WriteLnToConsole("TechRacer: Using map #"..tostring(mapID-1).." (mapID="..tostring(mapID)..")") |
|
914 officialChallenge = detectMapWithDigest() |
|
914 |
915 |
915 RebuildTeamInfo() |
916 RebuildTeamInfo() |
916 |
917 |
917 for i=0 , TeamsCount - 1 do |
918 for i=0 , TeamsCount - 1 do |
918 cnthhs = 0 |
919 cnthhs = 0 |
1250 raceType = "no tools race" |
1251 raceType = "no tools race" |
1251 else -- at least two of rope, portal and saucer used |
1252 else -- at least two of rope, portal and saucer used |
1252 raceType = "mixed race" |
1253 raceType = "mixed race" |
1253 end |
1254 end |
1254 |
1255 |
1255 map = detectMapWithDigest() |
|
1256 |
|
1257 for i = 0, (numTeams-1) do |
1256 for i = 0, (numTeams-1) do |
1258 if teamScore[i] < MAX_TURN_TIME then |
1257 if teamScore[i] < MAX_TURN_TIME then |
1259 DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i]) |
1258 DeclareAchievement(raceType, teamNameArr[i], officialChallenge, teamScore[i]) |
1260 end |
1259 end |
1261 end |
1260 end |
1262 |
1261 |
1263 if map ~= nil and fastCount > 0 then |
1262 if officialChallenge ~= nil and fastCount > 0 then |
1264 StartGhostPoints(fastCount) |
1263 StartGhostPoints(fastCount) |
1265 |
1264 |
1266 for i = 0, (fastCount - 1) do |
1265 for i = 0, (fastCount - 1) do |
1267 DumpPoint(fastX[i], fastY[i]) |
1266 DumpPoint(fastX[i], fastY[i]) |
1268 end |
1267 end |