mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 07:32:45 +00:00
#SwEng
fpclassify fix EntityManager: rename getExtant -> GetExtantAsHandles, fix its implementation+call site to avoid dynamic alloc/auto ptr, rename extant -> IsExtant vsnprintf2 -> sys_vsnprintf. remove printf.h (function is declared in sysdep header) use SUS/posix-ish strcasecmp instead of defining that to the windows-only stricmp add cppdoc for ia32/cpu This was SVN commit r5011.
This commit is contained in:
@@ -184,13 +184,12 @@ std::vector<HEntity>* CEntityManager::matches( EntityPredicate predicate, void*
|
||||
return( matchlist );
|
||||
}
|
||||
|
||||
std::vector<HEntity>* CEntityManager::getExtant()
|
||||
void CEntityManager::GetExtantAsHandles( std::vector<HEntity>& results )
|
||||
{
|
||||
std::vector<HEntity>* activelist = new std::vector<HEntity>;
|
||||
results.clear();
|
||||
for( int i = 0; i < MAX_HANDLES; i++ )
|
||||
if( isEntityRefd(i) )
|
||||
activelist->push_back( HEntity( i ) );
|
||||
return( activelist );
|
||||
results.push_back( HEntity( i ) );
|
||||
}
|
||||
|
||||
void CEntityManager::GetExtant( std::vector<CEntity*>& results )
|
||||
|
||||
Reference in New Issue
Block a user