this should ensure those other voices play a bit more often.
authornemo
Mon, 11 Mar 2013 12:20:59 -0400
changeset 8717 6e1ccd678e8a
parent 8716 e09633d10f16
child 8719 0f55bcfe7f36
this should ensure those other voices play a bit more often.
hedgewars/uStats.pas
--- a/hedgewars/uStats.pas	Sun Mar 10 15:44:03 2013 +0100
+++ b/hedgewars/uStats.pas	Mon Mar 11 12:20:59 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