load scroller in LoadFromAniDir for now; not sure why this doesn't always work

This commit is contained in:
Glenn Maynard
2005-01-16 02:04:39 +00:00
parent 2122d3e45a
commit 82ed283ac0
+4 -6
View File
@@ -133,6 +133,10 @@ 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
{
@@ -188,12 +192,6 @@ 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" );
this->RunCommandOnChildren( cmd );