share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 14929 f112847eb93e
parent 14825 cb5ffe17fdf9
child 14953 6c17ef373079
equal deleted inserted replaced
14928:4c5fb1ee75b7 14929:f112847eb93e
   576 			string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" ..
   576 			string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" ..
   577 			scoreText .. " |" ..entireC, 4, displayTime)
   577 			scoreText .. " |" ..entireC, 4, displayTime)
   578 
   578 
   579 	if lGameOver then
   579 	if lGameOver then
   580 		local winnerTeam = teamStats[1].name
   580 		local winnerTeam = teamStats[1].name
   581 		for i = 0, (SI.numhhs-1) do
       
   582 			if GetHogTeamName(SI.hhs[i]) == winnerTeam then
       
   583 				SetState(SI.hhs[i], bor(GetState(SI.hhs[i]), gstWinner))
       
   584 			end
       
   585 		end
       
   586 		AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState)
   581 		AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState)
   587 		SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam))
   582 		SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam))
   588 
   583 
   589 		for i = 1, TeamsCount do
   584 		for i = 1, TeamsCount do
   590 			SendStat(siPointType, "!POINTS")
   585 			SendStat(siPointType, "!POINTS")