remove <Command> children. This was only used to generate

command names on the fly.  If you need that, use Lua, eg.:

Actor.Quad {
    [s .. "Command"] = cmd(x,10)
}
This commit is contained in:
Glenn Maynard
2006-10-15 08:28:11 +00:00
parent 3d7f268dae
commit cea3b4ef5e
-18
View File
@@ -269,24 +269,6 @@ void Actor::LoadFromNode( const XNode* pNode )
}
}
//
// Load command elements
//
FOREACH_CONST_Child( pNode, c )
{
RString sKeyName = c->GetName();
if( sKeyName != "Command" )
continue; /* not a command */
RString sName;
c->GetAttrValue( "Name", sName );
c->PushAttrValue( L, "Value" );
LuaReference *pRef = new LuaReference;
pRef->SetFromStack( L );
AddCommand( sName, apActorCommands( pRef ) );
}
LUA->Release( L );
/* There's an InitCommand. Run it now. This can be used to eg. change Z to