]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix missing warmup check for accuracy frags
authorRudolf Polzer <divverent@alientrap.org>
Thu, 22 Dec 2011 16:02:35 +0000 (17:02 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 22 Dec 2011 16:02:35 +0000 (17:02 +0100)
qcsrc/server/cl_player.qc

index 5907b7e8fda3491b77f3996b144aed58a4e18b3b..7a667f370976fc0f90dcaa2f8e3da76232799460 100644 (file)
@@ -663,8 +663,7 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht
         float w;
         w = DEATH_WEAPONOF(deathtype);
         if(WEP_VALID(w))
-        if(self.classname == "player")
-        if(self != attacker)
+       if(accuracy_isgooddamage(attacker, self))
         attacker.accuracy.(accuracy_frags[w-1]) += 1;
 
                if(deathtype == DEATH_HURTTRIGGER && g_freezetag)