mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 23:35:53 +00:00
VS2005 compatibility fixes and warning adjustments:
Updated DLLs. Added DirectX headers/libraries, since they're not in the platform SDK. Fixed invalid STL iterator usage. Disabled STL in stack trace, since it breaks. Added comments for some reported warnings. Corrected some apparent off-by-one errors. Defined strlen_s to strnlen. Probably broke pre-beta2 versions of VC2005. This was SVN commit r2454.
This commit is contained in:
@@ -59,7 +59,11 @@ HEntity CEntityManager::create( CBaseEntity* base, CVector3D position, float ori
|
||||
while( m_entities[m_nextalloc].m_refcount )
|
||||
{
|
||||
m_nextalloc++;
|
||||
debug_assert(m_nextalloc < MAX_HANDLES);
|
||||
if( m_nextalloc >= MAX_HANDLES )
|
||||
{
|
||||
debug_warn("Ran out of entity handles!");
|
||||
return HEntity();
|
||||
}
|
||||
}
|
||||
m_entities[m_nextalloc].m_entity = new CEntity( base, position, orientation );
|
||||
m_entities[m_nextalloc].m_entity->me = HEntity( m_nextalloc );
|
||||
|
||||
Reference in New Issue
Block a user