grrrr
authornemo
Mon, 11 Mar 2013 12:21:37 -0400
changeset 8719 0f55bcfe7f36
parent 8717 6e1ccd678e8a (diff)
parent 8718 1c0614f5f3bd (current diff)
child 8720 5603527f9803
grrrr
--- a/hedgewars/uStats.pas	Sun Mar 10 19:43:31 2013 +0100
+++ b/hedgewars/uStats.pas	Mon Mar 11 12:21:37 2013 -0400
@@ -40,6 +40,7 @@
 
 var DamageClan  : Longword = 0;
     DamageTotal : Longword = 0;
+    DamageTurn  : Longword = 0;
     KillsClan   : LongWord = 0;
     Kills       : LongWord = 0;
     KillsTotal  : LongWord = 0;
@@ -82,7 +83,8 @@
         inc(KillsClan);
     end;
 
-inc(DamageTotal, Damage)
+inc(DamageTotal, Damage);
+inc(DamageTurn, Damage)
 end;
 
 procedure Skipped;
@@ -112,7 +114,7 @@
         end
 
     else if DamageClan <> 0 then
-        if DamageTotal > DamageClan then
+        if DamageTurn > DamageClan then
             if random(2) = 0 then
                 AddVoice(sndNutter, CurrentTeam^.voicepack)
             else
@@ -170,6 +172,7 @@
 Kills:= 0;
 KillsClan:= 0;
 DamageClan:= 0;
+DamageTurn:= 0;
 AmmoUsedCount:= 0;
 AmmoDamagingUsed:= false;
 isTurnSkipped:= false