store parent

This commit is contained in:
Glenn Maynard
2006-08-15 19:02:31 +00:00
parent 27718a78f2
commit a872952b8b
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -126,6 +126,7 @@ Actor::Actor()
m_size = RageVector2( 1, 1 );
InitDefaults();
m_pParent = NULL;
m_bFirstUpdate = true;
}
@@ -144,6 +145,7 @@ Actor::Actor( const Actor &cpy ):
#define CPY(x) x = cpy.x
CPY( m_sName );
CPY( m_pParent );
CPY( m_pLuaInstance );
CPY( m_baseRotation );
@@ -1273,6 +1275,8 @@ void Actor::PushContext( lua_State *L )
void Actor::SetParent( Actor *pParent )
{
m_pParent = pParent;
Lua *L = LUA->Get();
int iTop = lua_gettop( L );
+1
View File
@@ -362,6 +362,7 @@ public:
protected:
RString m_sName;
Actor *m_pParent;
struct TweenInfo
{