From: MrBougo Date: Thu, 19 Apr 2012 10:46:36 +0000 (+0200) Subject: fix old bug that disabled kill spree messages X-Git-Tag: xonotic-v0.7.0~271^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=37b51968256d98fd138d256c3e6ff020b5a73b7d;p=xonotic%2Fxonotic-data.pk3dir.git fix old bug that disabled kill spree messages --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index dcf1ad869..b037e08a2 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -449,10 +449,7 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype) attacker.killcount = attacker.killcount + 1; - if (attacker.killcount > 2) { - Send_KillNotification(a, ftos(attacker.killcount), "", KILL_SPREE, MSG_SPREE); - } - else if (attacker.killcount == 3) + if (attacker.killcount == 3) { Send_KillNotification(a, "", "", KILL_SPREE_3, MSG_SPREE); AnnounceTo(attacker, "03kills"); @@ -494,6 +491,9 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype) AnnounceTo(attacker, "30kills"); PlayerStats_Event(attacker, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30, 1); } + else if (attacker.killcount > 2) { + Send_KillNotification(a, ftos(attacker.killcount), "", KILL_SPREE, MSG_SPREE); + } LogDeath("frag", deathtype, attacker, targ); } }