summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_weapon.c')
-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;