share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 15090 e16f906224fd
parent 14599 50f511588635
child 15423 1028f5606b5f
equal deleted inserted replaced
15089:6f51c75994a4 15090:e16f906224fd
   397 		elseif teamNameArr[i] == " " then
   397 		elseif teamNameArr[i] == " " then
   398 			teamComment[i] = "|"
   398 			teamComment[i] = "|"
   399 		end
   399 		end
   400 	end
   400 	end
   401 
   401 
       
   402 	local icon
       
   403 	if roundNumber >= roundLimit then
       
   404 		icon = 0
       
   405 	else
       
   406 		icon = 2
       
   407 	end
   402 	ShowMission(loc("TechRacer"),
   408 	ShowMission(loc("TechRacer"),
   403 		loc("Status update"),
   409 		loc("Status update"),
   404 		string.format(loc("Rounds complete: %d/%d"), roundNumber, roundLimit) .. "| |" ..
   410 		string.format(loc("Rounds complete: %d/%d"), roundNumber, roundLimit) .. "| |" ..
   405 		loc("Best team times: ") .. "|" ..
   411 		loc("Best team times: ") .. "|" ..
   406 		totalComment,
   412 		totalComment,
   407 		0, 4000)
   413 		icon, 4000)
   408 
   414 
   409 	-- end game if its at round limit
   415 	-- end game if its at round limit
   410 	if roundNumber >= roundLimit then
   416 	if roundNumber >= roundLimit then
   411 		-- Sort the scores for the ranking list
   417 		-- Sort the scores for the ranking list
   412 		local unfinishedArray = {}
   418 		local unfinishedArray = {}