This commit is contained in:
Glenn Maynard
2005-10-07 02:56:23 +00:00
parent 91815ef03e
commit a411c9d1f4
+4 -2
View File
@@ -188,6 +188,10 @@ Actor::Actor( const Actor &cpy )
#undef CPY
}
/* XXX: This calls InitCommand, which must happen after all other
* initialization (eg. ActorFrame loading children). However, it
* also loads input variables, which should happen first. The
* former is more important. */
void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
{
FOREACH_CONST_Child( pNode, pChild )
@@ -262,8 +266,6 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
/* There's an InitCommand. Run it now. This can be used to eg. change Z to
* modify draw order between BGAs in a Foreground. */
// XXX: We should run Init last, after the derived class finishes initializing,
// but we want to set up input parameters before the derived class loads ...
PlayCommand( "Init" );
}