don't propagate "Init"

This commit is contained in:
Chris Danford
2005-02-23 20:37:21 +00:00
parent 4eeb0fd884
commit 167aa06970
+5
View File
@@ -252,8 +252,13 @@ void ActorFrame::LoseFocus()
void ActorFrame::PlayCommand( const CString &sCommandName )
{
// HACK: Don't propogate Init. It gets called once for every Actor when the
// Actor is loaded, and we don't want to call it again.
Actor::PlayCommand( sCommandName );
if( sCommandName == "Init" )
return;
for( unsigned i=0; i<m_SubActors.size(); i++ )
{
Actor* pActor = m_SubActors[i];