scattered ActorUtil::ResolvePath calls unneeded

This commit is contained in:
Glenn Maynard
2006-10-15 01:46:23 +00:00
parent 4ebd0192db
commit 2478ec0873
4 changed files with 5 additions and 11 deletions
+5 -4
View File
@@ -108,14 +108,15 @@ void Sprite::Load( RageTextureID ID )
void Sprite::LoadFromNode( const XNode* pNode )
{
/* Texture may refer to the ID of a render target; if it's already registered,
* use it without trying ot resolve it. */
RString sPath;
ActorUtil::GetAttrPath( pNode, "Texture", sPath );
pNode->GetAttrValue( "Texture", sPath );
if( !sPath.empty() && !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
ActorUtil::GetAttrPath( pNode, "Texture", sPath );
if( !sPath.empty() )
{
if( !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
ActorUtil::ResolvePath( sPath, ActorUtil::GetWhere(pNode) );
// Load the texture
LoadFromTexture( sPath );