share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
changeset 12538 952afc3d2df2
parent 12524 a5ddc6b4abbd
child 12556 846fa8bb856e
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Tue Sep 26 16:25:57 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Tue Sep 26 18:54:35 2017 +0200
@@ -407,7 +407,7 @@
 		SendStat(siGameResult, loc("This is the wrong way!"))
 		SendStat(siCustomAchievement, loc("Collect the crate with the flying saucer!"))
 		SendStat(siCustomAchievement, loc("Fly to the moon."))
-		SendStat(siPlayerKills,'0',teamC.name)
+		sendSimpleTeamRankings({teamC.name})
 		EndGame()
 	else
 		if checkPointReached ~= 5 then
@@ -654,7 +654,7 @@
 	if GetCampaignVar("Won") == "true" and GetCampaignVar("Mission1Won") ~= "true" then
 		SendStat(siCustomAchievement, loc("Complete all main and side missions to complete the spacetrip mission."))
 	end
-	SendStat(siPlayerKills,'1',teamC.name)
+	sendSimpleTeamRankings({teamC.name})
 	EndGame()
 end
 
@@ -663,6 +663,6 @@
 	SendStat(siCustomAchievement, loc("Your first destination is the moon in order to get more fuel."))
 	SendStat(siCustomAchievement, loc("You have to complete the main mission on moon in order to travel to other planets."))
 	SendStat(siCustomAchievement, loc("You have to be careful and must not die!"))
-	SendStat(siPlayerKills,'0',teamC.name)
+	sendSimpleTeamRankings({teamC.name})
 	EndGame()
 end