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.
This commit is contained in:
Glenn Maynard
2005-01-06 18:46:03 +00:00
parent 5181d7e037
commit 972ccb65df
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -164,6 +164,9 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
Command cmd;
cmd.Load( "PlayCommand,Init" );
this->RunCommandOnChildren( cmd );
if( !m_bGeneric )
PlayCommand( "On" );
}
else
{
-3
View File
@@ -589,9 +589,6 @@ void BGAnimationLayer::LoadFromIni( const CString& sAniDir_, const IniKey& layer
for( unsigned i=0; i<m_SubActors.size(); i++ )
m_SubActors[i]->SetState( rand()%m_SubActors[i]->GetNumStates() );
}
if( !m_bGeneric )
PlayCommand( "On" );
}
void BGAnimationLayer::Update( float fDeltaTime )