summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 12:03:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:38 +0000
commit21dfc5b93969a57d8ceebfd85775248456fa22d6 (patch)
treef4877c1bd9737bd392aea69651c91611298933a2 /src/game
parentb5384ca3193b94a473e6d1995235677ce66efa4b (diff)
* buildable bleed wip code
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_weapon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index bf547dbb..dac17f7a 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -362,7 +362,9 @@ void bulletFire( gentity_t *ent, float spread, int damage, int mod )
SnapVectorTowards( tr.endpos, muzzle );
// send bullet impact
- if( traceEnt->takedamage && traceEnt->client )
+ if( traceEnt->takedamage &&
+ (traceEnt->s.eType == ET_PLAYER ||
+ traceEnt->s.eType == ET_BUILDABLE ) )
{
tent = G_TempEntity( tr.endpos, EV_BULLET_HIT_FLESH );
tent->s.eventParm = traceEnt->s.number;