# HG changeset patch # User unc0rr # Date 1459189211 -10800 # Node ID d75c666e2d216ada45e8493d5290fc4dccc161a8 # Parent 1e7a50e91d0c440223026bdbc3c28f42a93b933c Declare achievements alongwith EndGame call, since it would skip SendStats diff -r 1e7a50e91d0c -r d75c666e2d21 share/hedgewars/Data/Maps/ClimbHome/map.lua --- a/share/hedgewars/Data/Maps/ClimbHome/map.lua Thu Mar 24 14:40:59 2016 +0300 +++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua Mon Mar 28 21:20:11 2016 +0300 @@ -390,6 +390,7 @@ SendStat(siPlayerKills, tostring(roundedFinishTime), loc(GetHogTeamName(CurrentHedgehog))) EndGame() + onAchievementsDeclaration() YouWon = true end elseif distanceFromWater < 0 and not YouLost then @@ -399,6 +400,7 @@ if deadHedgehogs >= totalHedgehogs then makeFinalMultiPlayerStats() EndGame() + onAchievementsDeclaration() end end @@ -550,6 +552,7 @@ if deadHedgehogs >= totalHedgehogs then makeFinalMultiPlayerStats() EndGame() + onAchievementsDeclaration() end makeMultiPlayerLoserStat(gear) end @@ -598,6 +601,7 @@ SendStat(siPointType, loc("points")) SendStat(siPlayerKills, actualHeight, loc(GetHogTeamName(CurrentHedgehog))) EndGame() + onAchievementsDeclaration() end function makeMultiPlayerLoserStat(gear)