summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-05-14 21:39:34 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-05-14 21:39:34 +0200
commit48436604d0b4284e3abfdc2f4f46eebfa9150c16 (patch)
tree739c6b5a5a4bee718370c75e276725d619f151c3
parentcc9919c8c83425b3ea9e65f9e5bd2cd90af4f003 (diff)
Let Basilisk gas go through entities.
-rw-r--r--src/game/g_weapon.c4
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 ) )