set effectclock cleanly

This commit is contained in:
Glenn Maynard
2007-03-22 00:04:37 +00:00
parent 1fdf23a4a3
commit 8a07dfca34
12 changed files with 12 additions and 27 deletions
-15
View File
@@ -670,21 +670,6 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
m_pDancingCharacters->LoadNextSong();
TEXTUREMAN->SetDefaultTexturePolicy( OldPolicy );
/* Song backgrounds always sync from the music by default, unlike other actors
* which sync from the regular clock by default. If you don't want this, set
* the clock back with "effectclock,timer" in your OnCommand. Note that at this
* point, we havn't run the OnCommand yet, so it'll override correctly. */
FOREACHM( BackgroundDef, Actor*, mainlayer.m_BGAnimations, it )
{
Actor *pBGA = it->second;
/* Be sure that we run this command recursively on all children; the tree
* may look something like "BGAnimation, BGAnimationLayer, Sprite" or it
* may be deeper, like "BGAnimation, BGAnimationLayer, BGAnimation,
* BGAnimationLayer, Sprite". */
pBGA->RunCommands( ActorUtil::ParseActorCommands("effectclock,'music'") );
}
}
int BackgroundImpl::Layer::FindBGSegmentForBeat( float fBeat ) const