ASA cosmos: Remove unneccary message when hero dies after moon was reached
authorWuzzy <Wuzzy2@mail.ru>
Fri, 21 Dec 2018 23:17:10 +0100
changeset 14506 4e7fbbdca061
parent 14505 dbf704b00762
child 14507 abe0a561005e
ASA cosmos: Remove unneccary message when hero dies after moon was reached
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Fri Dec 21 22:59:06 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Fri Dec 21 23:17:10 2018 +0100
@@ -745,7 +745,9 @@
 
 function sendStatsOnRetry()
 	SendStat(siGameResult, loc("You have to travel again"))
-	SendStat(siCustomAchievement, loc("Your first destination is the moon in order to get more fuel."))
+	if checkPointReached < 4 then
+		SendStat(siCustomAchievement, loc("Your first destination is the moon in order to get more fuel."))
+	end
 	SendStat(siCustomAchievement, loc("You have to be careful and must not die!"))
 	sendSimpleTeamRankings({teamC.name})
 	EndGame()