mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Merge 6ef114b5be
into 0565403b15
This commit is contained in:
commit
7fb419e51b
1 changed files with 8 additions and 1 deletions
|
@ -526,7 +526,14 @@ CBaseEntity *CGlobalEntityList::FindEntityProcedural( const char *szName, CBaseE
|
|||
//
|
||||
if ( FStrEq( pName, "player" ) )
|
||||
{
|
||||
return (CBaseEntity *)UTIL_PlayerByIndex( 1 );
|
||||
if ( pSearchingEntity )
|
||||
{
|
||||
return FindEntityGenericNearest( "player", pSearchingEntity->GetAbsOrigin(), 0, pSearchingEntity, pActivator, pCaller );
|
||||
}
|
||||
else
|
||||
{
|
||||
return ( CBaseEntity * ) UTIL_PlayerByIndex( 1 );
|
||||
}
|
||||
}
|
||||
else if ( FStrEq( pName, "pvsplayer" ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue