mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
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 );
|
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
|
||||||
if( pEntity )
|
if( pEntity )
|
||||||
|
{
|
||||||
pEntity->Touch( pOther );
|
pEntity->Touch( pOther );
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
pev->flags |= FL_KILLME;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TREE_AE_ATTACK 1
|
#define TREE_AE_ATTACK 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user