diff options
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 4eadaf12..b3af71e4 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -754,6 +754,9 @@ void AAcidTube_Think( gentity_t *self ) { enemy = &g_entities[ entityList[ i ] ]; + if( !G_Visible( self, enemy ) ) + continue; + if( enemy->client && enemy->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { self->timestamp = level.time; @@ -820,6 +823,9 @@ void AHive_Think( gentity_t *self ) if( enemy->health <= 0 ) continue; + if( !G_Visible( self, enemy ) ) + continue; + if( enemy->client && enemy->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { self->active = qtrue; |