mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-25 22:24:16 +00:00
Merge 5cade5b760
This commit is contained in:
parent
3dfbd2a41f
commit
ac6d7c4384
@ -334,12 +334,10 @@ void CBaseMonster::Look( int iDistance )
|
|||||||
{
|
{
|
||||||
if( pev->spawnflags & SF_MONSTER_WAIT_TILL_SEEN )
|
if( pev->spawnflags & SF_MONSTER_WAIT_TILL_SEEN )
|
||||||
{
|
{
|
||||||
CBaseMonster *pClient;
|
CBaseMonster *pClient = pSightEnt->MyMonsterPointer();
|
||||||
|
|
||||||
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
|
// 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.
|
// we're not in the player's view cone.
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user