From a86c777218c3b32c2c21d78278b1f38d56380ce7 Mon Sep 17 00:00:00 2001 From: "Timothy C. McGrath" Date: Sat, 14 Feb 2004 11:41:28 +0000 Subject: [PATCH] Fixed. Had it doing the loop before I was adding the number it was supposed to be adding. Oops. Thanks Grievre. Hikaru --- quake/combat.qc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/quake/combat.qc b/quake/combat.qc index f782f2d..79633d5 100644 --- a/quake/combat.qc +++ b/quake/combat.qc @@ -71,15 +71,6 @@ void(entity targ, entity attacker) Killed = self.enemy = attacker; -// bump the monster counter - if (self.flags & FL_MONSTER) - { - while (killed_monsters_oldcount < killed_monsters) { - killed_monsters_oldcount++; - WriteByte (MSG_ALL, SVC_KILLEDMONSTER); - } - } - ClientObituary(self, attacker); self.takedamage = DAMAGE_NO; @@ -87,7 +78,14 @@ void(entity targ, entity attacker) Killed = monster_death_use(); self.th_die (); - + + if (self.flags & FL_MONSTER) { + while (killed_monsters_oldcount < killed_monsters) { + killed_monsters_oldcount++; + WriteByte (MSG_ALL, SVC_KILLEDMONSTER); + } + } + self = oself; };