From 3b145e1bfc6ae872f6630d5601cc79206e7ba7a1 Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 12:04:40 +0000 Subject: * fix for wide traces not causing bleeding on non-players --- src/game/g_weapon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 68bc8eaa..ae13d3ba 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -267,10 +267,10 @@ static void WideBloodSpurt( gentity_t *attacker, gentity_t *victim, trace_t *tr return; if( tr ) - VectorSubtract( tr->endpos, victim->client->ps.origin, normal ); + VectorSubtract( tr->endpos, victim->s.origin, normal ); else VectorSubtract( attacker->client->ps.origin, - victim->client->ps.origin, normal ); + victim->s.origin, normal ); // Normalize the horizontal components of the vector difference to the // "radius" of the bounding box @@ -288,7 +288,7 @@ static void WideBloodSpurt( gentity_t *attacker, gentity_t *victim, trace_t *tr if( normal[ 2 ] < victim->r.mins[ 2 ] ) normal[ 2 ] = victim->r.mins[ 2 ]; - VectorAdd( victim->client->ps.origin, normal, origin ); + VectorAdd( victim->s.origin, normal, origin ); VectorNegate( normal, normal ); VectorNormalize( normal ); -- cgit