diff options
-rw-r--r-- | src/game/g_weapon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index c4909be..11bbd38 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -1035,10 +1035,10 @@ void poisonCloud( gentity_t *ent ) if( BG_InventoryContainsUpgrade( UP_BATTLESUIT, humanPlayer->client->ps.stats ) ) continue; - trap_Trace( &tr, muzzle, NULL, NULL, humanPlayer->s.origin, humanPlayer->s.number, MASK_SHOT ); + trap_Trace( &tr, muzzle, NULL, NULL, humanPlayer->s.origin, humanPlayer->s.number, MASK_SOLID ); //can't see target from here - if( tr.entityNum != entityList[ i ] ) + if( tr.fraction < 1.0f ) continue; if( !( humanPlayer->client->ps.stats[ STAT_STATE ] & SS_POISONCLOUDED ) ) |