From ee8f3f89e3f277fd44685ba05370c0d3c4c9fc0b Mon Sep 17 00:00:00 2001 From: Scott Brooks Date: Sun, 4 Nov 2001 21:12:37 +0000 Subject: [PATCH] Fixed /kills --- reaction/cgame/cg_event.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reaction/cgame/cg_event.c b/reaction/cgame/cg_event.c index 26281c59..158b7f6c 100644 --- a/reaction/cgame/cg_event.c +++ b/reaction/cgame/cg_event.c @@ -205,7 +205,7 @@ static void CG_Obituary( entityState_t *ent ) { } } //Blaze: This allows for the falling damage message to pass through if someone attacked them - if (attacker != ENTITYNUM_WORLD) message = NULL; + if (!(attacker == ENTITYNUM_WORLD || attacker ==target)) message = NULL; if (message) { CG_Printf( "%s %s.\n", targetName, message); return; @@ -513,7 +513,7 @@ static void CG_Obituary_Head( entityState_t *ent ) { break; } } - if (attacker != ENTITYNUM_WORLD) message = NULL; + if (!(attacker == ENTITYNUM_WORLD || attacker ==target)) message = NULL; if (message) { CG_Printf( "%s %s.\n", targetName, message); return; @@ -721,7 +721,7 @@ static void CG_Obituary_Chest( entityState_t *ent ) { break; } } - if (attacker != ENTITYNUM_WORLD) message = NULL; + if (!(attacker == ENTITYNUM_WORLD || attacker ==target)) message = NULL; if (message) { CG_Printf( "%s %s.\n", targetName, message); return; @@ -900,7 +900,7 @@ static void CG_Obituary_Stomach( entityState_t *ent ) { break; } } - if (attacker != ENTITYNUM_WORLD) message = NULL; + if (!(attacker == ENTITYNUM_WORLD || attacker ==target)) message = NULL; if (message) { CG_Printf( "%s %s.\n", targetName, message); return; @@ -1088,7 +1088,7 @@ static void CG_Obituary_Legs( entityState_t *ent ) { break; } } - if (attacker != ENTITYNUM_WORLD) message = NULL; + if (!(attacker == ENTITYNUM_WORLD || attacker == target)) message = NULL; if (message) { CG_Printf( "%s %s.\n", targetName, message); return;