# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1521125357 -3600
# Node ID b229b3259a76f7abe97ee5a0bd881d539ac46e90
# Parent  d0647647a6975ca45f83d7994bafe55a45820bed
Mutant: Fix graph title on game draw

diff -r d0647647a697 -r b229b3259a76 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