From 972ccb65df82219aca68776edbc2ce33bb7a8ee9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 6 Jan 2005 18:46:03 +0000 Subject: [PATCH] Once BGAnimation is handled mostly by AutoActor, all BGAnimations will be "non-generic" (and probably deprecated); let's aim to move all "generic" logic into BGAnimation, out of BGALayer. --- stepmania/src/BGAnimation.cpp | 3 +++ stepmania/src/BGAnimationLayer.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/BGAnimation.cpp b/stepmania/src/BGAnimation.cpp index c232755090..39dfff12b4 100644 --- a/stepmania/src/BGAnimation.cpp +++ b/stepmania/src/BGAnimation.cpp @@ -164,6 +164,9 @@ void BGAnimation::LoadFromAniDir( CString sAniDir ) Command cmd; cmd.Load( "PlayCommand,Init" ); this->RunCommandOnChildren( cmd ); + + if( !m_bGeneric ) + PlayCommand( "On" ); } else { diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 83eddd7705..225fa46cab 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -589,9 +589,6 @@ void BGAnimationLayer::LoadFromIni( const CString& sAniDir_, const IniKey& layer for( unsigned i=0; iSetState( rand()%m_SubActors[i]->GetNumStates() ); } - - if( !m_bGeneric ) - PlayCommand( "On" ); } void BGAnimationLayer::Update( float fDeltaTime )