From 95fdd553de4fea9d93324a11f7f64c74a89a392c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Feb 2007 23:47:39 +0000 Subject: [PATCH] remove Command="%function" syntax from XML. Use Lua directly. --- stepmania/src/XmlFileUtil.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stepmania/src/XmlFileUtil.cpp b/stepmania/src/XmlFileUtil.cpp index 95e9f81af9..97079ade78 100644 --- a/stepmania/src/XmlFileUtil.cpp +++ b/stepmania/src/XmlFileUtil.cpp @@ -583,12 +583,7 @@ namespace RString sExpression; pValue->GetValue( sExpression ); - if( EndsWith(sName, "Command") && sExpression.size() > 0 && sExpression[0] == '%' ) - { - sExpression.erase( 0, 1 ); - LuaHelpers::RunExpression( L, sExpression, sFile ); - } - else if( EndsWith(sName, "Command") && (sExpression.size() == 0 || sExpression[0] != '%') ) + if( EndsWith(sName, "Command") ) { LuaHelpers::ParseCommandList( L, sExpression, sFile ); }