From bc76c88cd1ae898ed8d224fd70b0d3f797b71745 Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 12:17:52 +0000 Subject: * fix for location not updating while following a player (reported by megatog615) * dead buildables no longer bleed --- src/game/g_weapon.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game') 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 -- cgit