Browse Source

Clean xen_ttrigger when no tree

gravgun
mittorn 6 years ago
parent
commit
7d68ba8375
  1. 4
      dlls/xen.cpp

4
dlls/xen.cpp

@ -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…
Cancel
Save