android port
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
static C_BaseEntity *s_pLocalEntity;
|
||||
|
||||
C_EntitySystem *EntitySystem()
|
||||
C_EntitySystem *ClientEntitySystem()
|
||||
{
|
||||
static C_EntitySystem s_entitySystem;
|
||||
return &s_entitySystem;
|
||||
@@ -25,7 +25,7 @@ static struct EntityRegistry_t
|
||||
IEntityFactory *m_pFactory;
|
||||
const char *m_szClassName;
|
||||
struct EntityRegistry_t *m_pNext;
|
||||
} *s_pEntitiesRegistry = NULL;
|
||||
} *s_pClientEntitiesRegistry = NULL;
|
||||
|
||||
C_EntitySystem::C_EntitySystem()
|
||||
{
|
||||
@@ -52,9 +52,9 @@ void C_EntitySystem::RegisterEntityClass( IEntityFactory *pEntityFactory, const
|
||||
|
||||
pRegistry = new EntityRegistry_t;
|
||||
pRegistry->m_pFactory = pEntityFactory;
|
||||
pRegistry->m_pNext = s_pEntitiesRegistry;
|
||||
pRegistry->m_pNext = s_pClientEntitiesRegistry;
|
||||
pRegistry->m_szClassName = szClassName;
|
||||
s_pEntitiesRegistry = pRegistry;
|
||||
s_pClientEntitiesRegistry = pRegistry;
|
||||
}
|
||||
|
||||
C_BaseEntity *C_EntitySystem::CreateByClassname( const char *szName )
|
||||
@@ -113,7 +113,7 @@ IEntityFactory *C_EntitySystem::GetFactoryByClassname( const char *szName )
|
||||
{
|
||||
EntityRegistry_t *pEntity;
|
||||
|
||||
for ( pEntity = s_pEntitiesRegistry; pEntity; pEntity = pEntity->m_pNext )
|
||||
for ( pEntity = s_pClientEntitiesRegistry; pEntity; pEntity = pEntity->m_pNext )
|
||||
{
|
||||
if (!strcmp(szName, pEntity->m_szClassName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user