summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 93b8c21c..185b201d 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -1099,7 +1099,10 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
//TA: add to the attackers "account" on the target
if( targ->client && attacker->client )
- targ->credits[ attacker->client->ps.clientNum ] += take;
+ {
+ if( attacker != targ && !OnSameTeam( targ, attacker ) )
+ targ->credits[ attacker->client->ps.clientNum ] += take;
+ }
if( targ->health <= 0 )
{