summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_weapon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index beb91429..20666b50 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -247,6 +247,10 @@ static void BloodSpurt( gentity_t *attacker, gentity_t *victim, trace_t *tr )
if( !attacker->client )
return;
+
+ if( victim->health <= 0 )
+ return;
+
tent = G_TempEntity( tr->endpos, EV_MISSILE_HIT );
tent->s.otherEntityNum = victim->s.number;
tent->s.eventParm = DirToByte( tr->plane.normal );
@@ -270,6 +274,9 @@ static void WideBloodSpurt( gentity_t *attacker, gentity_t *victim, trace_t *tr
if( !attacker->client )
return;
+ if( victim->health <= 0 )
+ return;
+
if( tr )
VectorSubtract( tr->endpos, victim->s.origin, normal );
else