allow AtExpressions in Commands

This commit is contained in:
Chris Danford
2005-02-12 22:54:15 +00:00
parent e38164e74f
commit 8decda4f63
+4 -2
View File
@@ -12,6 +12,7 @@
#include "LuaBinding.h"
#include "Command.h"
#include "ActorCommands.h"
#include "ThemeManager.h"
// lua start
@@ -98,8 +99,9 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
if( sKeyName.Right(7) != "command" )
continue; /* not a command */
const CString &sCommands = a->m_sValue;
Commands cmds = ParseCommands( sCommands );
CString sValue = a->m_sValue;
THEME->EvaluateString( sValue );
Commands cmds = ParseCommands( sValue );
apActorCommands apac( new ActorCommands( cmds ) );
CString sCmdName;