mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-03 17:25:27 +03:00
Fix SetRelationship input not using !activator
This commit is contained in:
parent
e4c10506a8
commit
68d8811b18
@ -3482,13 +3482,13 @@ void CBaseCombatCharacter::AddRelationship( const char *pszRelationship, CBaseEn
|
||||
bool bFoundEntity = false;
|
||||
|
||||
// Try to get pointer to an entity of this name
|
||||
CBaseEntity *entity = gEntList.FindEntityByName( NULL, entityString );
|
||||
CBaseEntity *entity = gEntList.FindEntityByName( NULL, entityString, this, pActivator );
|
||||
while( entity )
|
||||
{
|
||||
// make sure you catch all entities of this name.
|
||||
bFoundEntity = true;
|
||||
AddEntityRelationship(entity, disposition, priority );
|
||||
entity = gEntList.FindEntityByName( entity, entityString );
|
||||
entity = gEntList.FindEntityByName( entity, entityString, this, pActivator );
|
||||
}
|
||||
|
||||
if( !bFoundEntity )
|
||||
|
Loading…
x
Reference in New Issue
Block a user