This commit is contained in:
Night Owl 2017-07-02 19:35:16 +05:00
parent 3dfbd2a41f
commit ac6d7c4384
1 changed files with 2 additions and 4 deletions

View File

@ -334,12 +334,10 @@ void CBaseMonster::Look( int iDistance )
{
if( pev->spawnflags & SF_MONSTER_WAIT_TILL_SEEN )
{
CBaseMonster *pClient;
pClient = pSightEnt->MyMonsterPointer();
CBaseMonster *pClient = pSightEnt->MyMonsterPointer();
// don't link this client in the list if the monster is wait till seen and the player isn't facing the monster
if( pSightEnt && !pClient->FInViewCone( this ) )
if( pClient && !pClient->FInViewCone( this ) )
{
// we're not in the player's view cone.
continue;