hedgewars/uTeams.pas
changeset 12332 657a8d63c99d
parent 12322 9aa483762025
child 12410 8b971d8944d6
--- a/hedgewars/uTeams.pas	Wed Apr 26 01:46:38 2017 +0200
+++ b/hedgewars/uTeams.pas	Wed Apr 26 01:51:51 2017 +0200
@@ -82,7 +82,8 @@
     if AliveCount = 0 then
         begin // draw
         AddCaption(GetEventString(eidRoundDraw), cWhiteColor, capgrpGameState);
-        SendStat(siGameResult, shortstring(trmsg[sidDraw]));
+        if SendGameResultOn then
+            SendStat(siGameResult, shortstring(trmsg[sidDraw]));
         AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000);
         end
     else // win
@@ -113,7 +114,8 @@
                 AddVoice(sndVictory, Teams[0]^.voicepack);
 
             AddCaption(cap, cWhiteColor, capgrpGameState);
-            SendStat(siGameResult, shortstring(s));
+            if SendGameResultOn then
+                SendStat(siGameResult, shortstring(s));
             AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000)
             end;
     SendStats;