From 3db35f3ba15e015f28924cec254a6e3a587f942b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 26 Jul 2005 21:12:00 +0000 Subject: [PATCH] restore BitmapText backward compat hack --- stepmania/src/ActorUtil.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 57aa679340..a8f195f776 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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;