remove old ini/xml hacks
This commit is contained in:
@@ -127,13 +127,8 @@ Actor* ActorUtil::LoadFromNode( const XNode* pNode, Actor *pParentActor )
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Element name is the type in XML.
|
RString sClass;
|
||||||
// Type= is the name in INI.
|
pNode->GetAttrValue( "Class", sClass );
|
||||||
// TODO: Remove the backward compat fallback
|
|
||||||
RString sClass = pNode->GetName();
|
|
||||||
bool bHasClass = pNode->GetAttrValue( "Class", sClass );
|
|
||||||
if( !bHasClass )
|
|
||||||
bHasClass = pNode->GetAttrValue( "Type", sClass ); // for backward compatibility
|
|
||||||
|
|
||||||
if( !IsRegistered(sClass) )
|
if( !IsRegistered(sClass) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user