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; 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) )
{ {