2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 11:19:39 +01:00
This commit is contained in:
Night Owl 2017-07-02 19:35:16 +05:00
parent 3dfbd2a41f
commit ac6d7c4384

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;