remove parent parameter. Use self:GetParent().

This commit is contained in:
Glenn Maynard
2006-10-23 09:14:27 +00:00
parent c65a15f2f1
commit e76a9c8965
2 changed files with 3 additions and 9 deletions
+2 -8
View File
@@ -1014,14 +1014,8 @@ void Actor::RunCommands( const LuaReference& cmds )
// 1st parameter
this->PushSelf( L );
// 2nd parameter
if( m_pParent )
m_pParent->PushSelf( L );
else
lua_pushnil( L );
// call function with 2 arguments and 0 results
lua_call( L, 2, 0 );
// call function with 1 argument and 0 results
lua_call( L, 1, 0 );
LUA->Release(L);
}
+1 -1
View File
@@ -609,7 +609,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
//
ostringstream s;
s << "return function(self,parent)\n";
s << "return function(self)\n";
FOREACH_CONST( Command, cmds.v, c )
{