restore BitmapText backward compat hack
This commit is contained in:
@@ -183,8 +183,13 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode )
|
|||||||
bool bIsAbsolutePath = sFile.Left(1) == "/";
|
bool bIsAbsolutePath = sFile.Left(1) == "/";
|
||||||
FixSlashesInPlace( sFile );
|
FixSlashesInPlace( sFile );
|
||||||
|
|
||||||
CString sText;
|
// backward compat hack
|
||||||
bool bHasText = pNode->GetAttrValue( "Text", sText );
|
if( !bHasClass )
|
||||||
|
{
|
||||||
|
CString sText;
|
||||||
|
if( pNode->GetAttrValue( "Text", sText ) )
|
||||||
|
sClass = "BitmapText";
|
||||||
|
}
|
||||||
|
|
||||||
Actor *pReturn = NULL;
|
Actor *pReturn = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user