From bea75582ff5dc52b3ea03993ae0501c6159ba516 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 14 Aug 2005 23:02:22 +0000 Subject: [PATCH] evaluate AtExpressions in --- stepmania/src/ActorUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 261f2ae9ef..9f5f5aba30 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -135,10 +135,13 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode ) RageException::Throw( ssprintf("Param node in '%s' is missing the attribute 'Name'", sDir.c_str()) ); } + THEME->EvaluateString( sName ); + CString s; if( pChild->GetAttrValue( "Function", s ) ) { LuaExpression expr; + THEME->EvaluateString( s ); expr.SetFromExpression( s ); Lua *L = LUA->Get(); expr.PushSelf( L ); @@ -149,6 +152,7 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode ) } else if( pChild->GetAttrValue( "Value", s ) ) { + THEME->EvaluateString( s ); LUA->SetGlobalFromExpression( sName, s ); } else