From 37b51968256d98fd138d256c3e6ff020b5a73b7d Mon Sep 17 00:00:00 2001 From: MrBougo Date: Thu, 19 Apr 2012 12:46:36 +0200 Subject: [PATCH] fix old bug that disabled kill spree messages --- qcsrc/server/g_damage.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 2.39.2