simplify ActorCommands

This commit is contained in:
Glenn Maynard
2006-09-21 01:39:38 +00:00
parent 6fe7bf2683
commit 8548f1cb33
11 changed files with 22 additions and 24 deletions
+2 -2
View File
@@ -261,7 +261,7 @@ void Actor::LoadFromNode( const RString& sDir, const XNode* pNode )
else if( sKeyName == "BaseZoomZ" ) SetBaseZoomZ( StringToFloat(sValue) );
else if( EndsWith(sKeyName,"Command") )
{
apActorCommands apac( new ActorCommands( sValue ) );
apActorCommands apac = ActorCommands( sValue );
RString sCmdName = sKeyName.Left( sKeyName.size()-7 );
AddCommand( sCmdName, apac );
@@ -284,7 +284,7 @@ void Actor::LoadFromNode( const RString& sDir, const XNode* pNode )
c->GetAttrValue( "Value", sValue );
LuaHelpers::RunAtExpressionS( sName );
apActorCommands apac( new ActorCommands( sValue ) );
apActorCommands apac = ActorCommands( sValue );
AddCommand( sName, apac );
}