This commit is contained in:
Glenn Maynard
2006-07-28 00:24:30 +00:00
parent 73962daa0a
commit eafac8fb96
+4 -5
View File
@@ -114,14 +114,13 @@ void Sprite::Load( RageTextureID ID )
void Sprite::LoadFromNode( const RString& sDir, const XNode* pNode )
{
RString sTextureFile;
RString sPath;
if( pNode->GetAttrValue( "Texture", sTextureFile ) )
if( pNode->GetAttrValue( "Texture", sPath ) )
{
LuaHelpers::RunAtExpressionS( sTextureFile );
LuaHelpers::RunAtExpressionS( sPath );
bool bIsAbsolutePath = sTextureFile.Left(1) == "/";
sPath = bIsAbsolutePath ? sTextureFile : sDir+sTextureFile;
bool bIsAbsolutePath = sPath.Left(1) == "/";
sPath = bIsAbsolutePath ? : sDir+sPath;
}
if( !sPath.empty() )