From: Rudolf Polzer Date: Thu, 22 Dec 2011 16:02:35 +0000 (+0100) Subject: fix missing warmup check for accuracy frags X-Git-Tag: xonotic-v0.6.0~74^2~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=743305c490003fb3b5c3d42107cb134193102d03;p=xonotic%2Fxonotic-data.pk3dir.git fix missing warmup check for accuracy frags --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 5907b7e8f..7a667f370 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -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)