load Scroller in BGAnimation::LoadFromNode
This commit is contained in:
@@ -148,10 +148,6 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir )
|
||||
if( pBGAnimation == NULL )
|
||||
pBGAnimation = &dummy;
|
||||
LoadFromNode( sAniDir, *pBGAnimation );
|
||||
|
||||
const XNode* pScrollerNode = ini.GetChild( "Scroller" );
|
||||
if( pScrollerNode != NULL )
|
||||
ActorScroller::LoadFromNode( ini.GetPath(), pScrollerNode );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -233,6 +229,11 @@ void BGAnimation::LoadFromNode( const CString &sDir, const XNode& node )
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const XNode* pScrollerNode = node.GetChild( "Scroller" );
|
||||
if( pScrollerNode != NULL )
|
||||
ActorScroller::LoadFromNode( sDir, pScrollerNode );
|
||||
}
|
||||
|
||||
Command cmd;
|
||||
cmd.Load( "PlayCommand,Init" );
|
||||
|
||||
Reference in New Issue
Block a user