From 8decda4f638fc3e75be6576de43b6b4ce351ba40 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 12 Feb 2005 22:54:15 +0000 Subject: [PATCH] allow AtExpressions in Commands --- stepmania/src/Actor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 8b92a50da4..ab669723c5 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -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;