ClimbHome: Fix final team scoring 0 if hog took damage
authorWuzzy <almikes@aol.com>
Thu, 05 Oct 2017 18:26:08 +0200
changeset 12660 913d25669131
parent 12659 26b0d3b76dea
child 12661 161c10db4f27
ClimbHome: Fix final team scoring 0 if hog took damage
share/hedgewars/Data/Maps/ClimbHome/map.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Thu Oct 05 18:22:32 2017 +0200
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Thu Oct 05 18:26:08 2017 +0200
@@ -614,12 +614,12 @@
             makeSinglePlayerLoserStats()
         else
             deadHedgehogs = deadHedgehogs + 1
+            makeMultiPlayerLoserStat(gear)
             if (deadHedgehogs + multiplayerWins) >= totalHedgehogs then
                 makeFinalMultiPlayerStats()
                 EndGame()
                 onAchievementsDeclaration()
             end
-            makeMultiPlayerLoserStat(gear)
         end
         YouLost = true
     end