Fix wrong check.

This commit is contained in:
Night Owl 2018-07-12 10:26:04 +05:00
parent 15abd8f0f1
commit a0d5597db5

View File

@ -566,7 +566,7 @@ void CHoundeye::SonicAttack( void )
// iterate on all entities in the vicinity.
while( ( pEntity = UTIL_FindEntityInSphere( pEntity, pev->origin, HOUNDEYE_MAX_ATTACK_RADIUS ) ) != NULL )
{
if( pEntity->pev->takedamage == DAMAGE_NO )
if( pEntity->pev->takedamage != DAMAGE_NO )
{
if( pEntity->IsPlayer() )
{