summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 12:04:40 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:39 +0000
commit3b145e1bfc6ae872f6630d5601cc79206e7ba7a1 (patch)
tree63e6365d7e6e72467a365874c60fc02377253a33
parenta8d7e1110216c7d530c3fe6939d3e734a44f16ef (diff)
* fix for wide traces not causing bleeding on non-players
-rw-r--r--src/game/g_weapon.c6
1 files 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 );