LoadFromNode(sDir, pNode) -> LoadFromNode(pNode)
This commit is contained in:
@@ -41,18 +41,18 @@ bool DifficultyIcon::Load( RString sPath )
|
||||
return true;
|
||||
}
|
||||
|
||||
void DifficultyIcon::LoadFromNode( const RString& sDir, const XNode* pNode )
|
||||
void DifficultyIcon::LoadFromNode( const XNode* pNode )
|
||||
{
|
||||
RString sFile;
|
||||
if( !ActorUtil::GetAttrPath(pNode, "File", sFile) )
|
||||
RageException::Throw( "%s: DifficultyIcon: missing the \"File\" attribute.", ActorUtil::GetWhere(pNode).c_str() );
|
||||
|
||||
ActorUtil::ResolvePath( sFile, sDir );
|
||||
ActorUtil::ResolvePath( sFile, ActorUtil::GetWhere(pNode) );
|
||||
|
||||
Load( sFile );
|
||||
|
||||
// skip Sprite::LoadFromNode
|
||||
Actor::LoadFromNode( sDir, pNode );
|
||||
Actor::LoadFromNode( pNode );
|
||||
}
|
||||
|
||||
void DifficultyIcon::SetPlayer( PlayerNumber pn )
|
||||
|
||||
Reference in New Issue
Block a user