mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-30 06:29:32 +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;
|
bool bFoundEntity = false;
|
||||||
|
|
||||||
// Try to get pointer to an entity of this name
|
// 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 )
|
while( entity )
|
||||||
{
|
{
|
||||||
// make sure you catch all entities of this name.
|
// make sure you catch all entities of this name.
|
||||||
bFoundEntity = true;
|
bFoundEntity = true;
|
||||||
AddEntityRelationship(entity, disposition, priority );
|
AddEntityRelationship(entity, disposition, priority );
|
||||||
entity = gEntList.FindEntityByName( entity, entityString );
|
entity = gEntList.FindEntityByName( entity, entityString, this, pActivator );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !bFoundEntity )
|
if( !bFoundEntity )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user