use ActorUtil::GetAttrPath

This commit is contained in:
Glenn Maynard
2006-10-09 06:55:28 +00:00
parent b113467c20
commit 1f6aaf18b9
7 changed files with 13 additions and 43 deletions
+1 -5
View File
@@ -109,11 +109,7 @@ void Sprite::Load( RageTextureID ID )
void Sprite::LoadFromNode( const RString& sDir, const XNode* pNode )
{
RString sPath;
if( pNode->GetAttrValue( "Texture", sPath ) )
{
bool bIsAbsolutePath = sPath.Left(1) == "/";
sPath = bIsAbsolutePath ? sPath : sDir+sPath;
}
ActorUtil::GetAttrPath( pNode, "Texture", sPath );
if( !sPath.empty() )
{