remove old ini/xml hacks

This commit is contained in:
Glenn Maynard
2007-05-27 07:34:57 +00:00
parent b4f4ca4f5b
commit c6fbf980af
+2 -7
View File
@@ -127,13 +127,8 @@ Actor* ActorUtil::LoadFromNode( const XNode* pNode, Actor *pParentActor )
return NULL;
}
// Element name is the type in XML.
// Type= is the name in INI.
// 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
RString sClass;
pNode->GetAttrValue( "Class", sClass );
if( !IsRegistered(sClass) )
{