don't propagate "Init"
This commit is contained in:
@@ -252,8 +252,13 @@ void ActorFrame::LoseFocus()
|
|||||||
|
|
||||||
void ActorFrame::PlayCommand( const CString &sCommandName )
|
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 );
|
Actor::PlayCommand( sCommandName );
|
||||||
|
|
||||||
|
if( sCommandName == "Init" )
|
||||||
|
return;
|
||||||
|
|
||||||
for( unsigned i=0; i<m_SubActors.size(); i++ )
|
for( unsigned i=0; i<m_SubActors.size(); i++ )
|
||||||
{
|
{
|
||||||
Actor* pActor = m_SubActors[i];
|
Actor* pActor = m_SubActors[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user