restore BitmapText backward compat hack

This commit is contained in:
Chris Danford
2005-07-26 21:12:00 +00:00
parent 67af38cd97
commit 3db35f3ba1
+7 -2
View File
@@ -183,8 +183,13 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode )
bool bIsAbsolutePath = sFile.Left(1) == "/";
FixSlashesInPlace( sFile );
CString sText;
bool bHasText = pNode->GetAttrValue( "Text", sText );
// backward compat hack
if( !bHasClass )
{
CString sText;
if( pNode->GetAttrValue( "Text", sText ) )
sClass = "BitmapText";
}
Actor *pReturn = NULL;