share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 14928 4c5fb1ee75b7
parent 14590 c5f18710a184
child 14940 8b848c2939da
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Mon May 13 20:26:07 2019 +0200
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Mon May 13 21:23:25 2019 +0200
@@ -441,7 +441,6 @@
                             string.format(loc("Ahhh, home, sweet home. Made it in %d seconds."), roundedFinishTime),
                             -amRope, 0)
                 PlaySound(sndVictory,CurrentHedgehog)
-                SetState(CurrentHedgehog, gstWinner)
                 SendStat(siGameResult, loc("You have beaten the challenge!"))
                 SendStat(siGraphTitle, loc("Your height over time"))
                 SendStat(siCustomAchievement, string.format(loc("%s reached home in %.3f seconds. Congratulations!"), GetHogName(CurrentHedgehog), finishTime))
@@ -452,6 +451,7 @@
                 SendStat(siPlayerKills, tostring(rawFinishTime), GetHogTeamName(CurrentHedgehog))
 
                 EndGame()
+                SetState(CurrentHedgehog, gstWinner)
                 onAchievementsDeclaration()
                 YouWon = true
             end