Mutant: Fix graph title on game draw
authorWuzzy <Wuzzy2@mail.ru>
Thu, 15 Mar 2018 15:49:17 +0100
changeset 13219 b229b3259a76
parent 13218 d0647647a697
child 13220 1c390781f72f
Mutant: Fix graph title on game draw
share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Thu Mar 15 15:34:29 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Thu Mar 15 15:49:17 2018 +0100
@@ -423,8 +423,6 @@
     end
 
     if gameOver then
-        SendStat(siGraphTitle, loc("Score graph"))
-
         EndTurn(true)
 
         teamsSorted = {}
@@ -713,6 +711,8 @@
         hhs[numhhs] = gear
         numhhs = numhhs + 1
         SetEffect(gear, heResurrectable, 1)
+    elseif GetGearType(gear) == gtATFinishGame then
+        SendStat(siGraphTitle, loc("Score graph"))
     end
 end