From bf8ded44c6092a4e20b3ff9cda50d4593eeedeb4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 9 Oct 2006 07:49:40 +0000 Subject: [PATCH] remove sAniDir --- stepmania/src/BGAnimationLayer.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index a3c775dd0e..ff073d74e3 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -360,15 +360,6 @@ void BGAnimationLayer::LoadFromAniLayerFile( const RString& sPath ) void BGAnimationLayer::LoadFromNode( const RString& sDir, const XNode* pNode ) { - RString sAniDir = sDir; - - if( sAniDir.Right(1) != "/" ) - sAniDir += "/"; - - DEBUG_ASSERT( IsADirectory(sAniDir) ); - - CHECKPOINT_M( ssprintf( "BGAnimationLayer::LoadFromIni \"%s\"", sAniDir.c_str() ) ); - { bool bCond; if( pNode->GetAttrValue("Condition", bCond) && !bCond ) @@ -464,7 +455,7 @@ void BGAnimationLayer::LoadFromNode( const RString& sDir, const XNode* pNode ) { case TYPE_SPRITE: { - Actor* pActor = ActorUtil::LoadFromNode( sAniDir, pNode ); + Actor* pActor = ActorUtil::LoadFromNode( sDir, pNode ); this->AddChild( pActor ); if( bStretch ) pActor->StretchTo( FullScreenRectF );