Show traditional winning animation in Mutant again
authorWuzzy <almikes@aol.com>
Wed, 26 Apr 2017 02:55:40 +0200
changeset 12340 8f693d25be2f
parent 12339 0bc8c5fcd08c
child 12341 fbc268170015
Show traditional winning animation in Mutant again
share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Wed Apr 26 02:28:13 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Wed Apr 26 02:55:40 2017 +0200
@@ -152,6 +152,8 @@
 
 function onGameStart()
     SendHealthStatsOff()
+    SendRankingStatsOff()
+    SendAchievementsStatsOff()
     trackTeams()
     teamScan()
     runOnHogs(saveStuff)
@@ -465,9 +467,6 @@
             SendStat(siPlayerKills, getTeamValue(teamsSorted[i], "Score"), teamsSorted[i])
         end
 
-        AddCaption(string.format(loc("%s wins!"), winTeam), 0xFFFFFFFF, capgrpGameState )
-        SendStat(siGameResult, string.format("%s wins!", winTeam))
-
         ShowMission(    loc("Mutant"),
                         loc("Final result"),
                         string.format(loc("Winner: %s"), winTeam) .. "| |" .. loc("Scores:") .. " |" ..
@@ -751,11 +750,6 @@
         end
         AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
         trackDeletion(gear)
-
-        -- End game properly when only the winner remains
-        if gameOver and numhhs == 1 then
-            EndGame()
-        end
     elseif GetGearType(gear) == gtCase then
         -- Check if a crate has been collected
         if band(GetGearMessage(gear), gmDestroy) ~= 0 and CurrentHedgehog ~= nil then