Actual death flag and CHandle entity handle retrieval.
This was SVN commit r3303.
This commit is contained in:
parent
79ecda1ecf
commit
e968bd91ed
@ -19,6 +19,7 @@ CEntityManager::CEntityManager()
|
||||
{
|
||||
m_nextalloc = 0;
|
||||
m_extant = true;
|
||||
m_death = false;
|
||||
|
||||
// Also load a couple of global entity settings
|
||||
CConfigValue* cfg = g_ConfigDB.GetValue( CFG_USER, "selection.outline.quality" );
|
||||
@ -100,6 +101,12 @@ HEntity* CEntityManager::getByHandle( u16 index )
|
||||
if( !m_entities[index].m_refcount ) return( NULL );
|
||||
return( new HEntity( index ) );
|
||||
}
|
||||
CHandle *CEntityManager::getHandle( int index )
|
||||
{
|
||||
if (!m_entities[index].m_refcount )
|
||||
return NULL;
|
||||
return &m_entities[index];
|
||||
}
|
||||
|
||||
std::vector<HEntity>* CEntityManager::matches( EntityPredicate predicate, void* userdata )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user