mirror of https://github.com/FWGS/hlsdk-xash3d
Clean xen_ttrigger when no tree
This commit is contained in:
parent
a45dd7648b
commit
7d68ba8375
|
@ -234,8 +234,12 @@ void CXenTreeTrigger::Touch( CBaseEntity *pOther )
|
|||
{
|
||||
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
|
||||
if( pEntity )
|
||||
{
|
||||
pEntity->Touch( pOther );
|
||||
return;
|
||||
}
|
||||
}
|
||||
pev->flags |= FL_KILLME;
|
||||
}
|
||||
|
||||
#define TREE_AE_ATTACK 1
|
||||
|
|
Loading…
Reference in New Issue