equal
deleted
inserted
replaced
244 -- make a list of individual team names |
244 -- make a list of individual team names |
245 for i = 0, (TeamsCount-1) do |
245 for i = 0, (TeamsCount-1) do |
246 teamNameArr[i] = " " -- = i |
246 teamNameArr[i] = " " -- = i |
247 teamSize[i] = 0 |
247 teamSize[i] = 0 |
248 teamIndex[i] = 0 |
248 teamIndex[i] = 0 |
249 teamScore[i] = 100000 |
249 teamScore[i] = 1000000 |
250 end |
250 end |
251 numTeams = 0 |
251 numTeams = 0 |
252 |
252 |
253 for i = 0, (numhhs-1) do |
253 for i = 0, (numhhs-1) do |
254 |
254 |
348 end |
348 end |
349 |
349 |
350 function AdjustScores() |
350 function AdjustScores() |
351 |
351 |
352 if bestTime == nil then |
352 if bestTime == nil then |
353 bestTime = 100000 |
353 bestTime = 1000000 |
354 bestClan = 10 |
354 bestClan = 10 |
355 bestTimeComment = "N/A" |
355 bestTimeComment = "N/A" |
356 end |
356 end |
357 |
357 |
358 newScore = false |
358 newScore = false |
378 bestTime = teamScore[i] |
378 bestTime = teamScore[i] |
379 bestClan = teamClan[i] |
379 bestClan = teamClan[i] |
380 end |
380 end |
381 end |
381 end |
382 |
382 |
383 if bestTime ~= 100000 then |
383 if bestTime ~= 1000000 then |
384 bestTimeComment = (bestTime/1000) ..loc("s") |
384 bestTimeComment = (bestTime/1000) ..loc("s") |
385 end |
385 end |
386 |
386 |
387 if newScore == true then |
387 if newScore == true then |
388 if trackTime == bestTime then -- best time of the race |
388 if trackTime == bestTime then -- best time of the race |
1285 end |
1285 end |
1286 |
1286 |
1287 map = detectMapWithDigest() |
1287 map = detectMapWithDigest() |
1288 |
1288 |
1289 for i = 0, (numTeams-1) do |
1289 for i = 0, (numTeams-1) do |
1290 if teamScore[i] < 100000 then |
1290 if teamScore[i] < 1000000 then |
1291 DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i]) |
1291 DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i]) |
1292 end |
1292 end |
1293 end |
1293 end |
1294 |
1294 |
1295 if map ~= nil and fastCount > 0 then |
1295 if map ~= nil and fastCount > 0 then |