evaluate enums directly

This commit is contained in:
Glenn Maynard
2006-10-09 01:34:16 +00:00
parent e0b788de16
commit d7776aba60
10 changed files with 26 additions and 44 deletions
+3 -6
View File
@@ -52,12 +52,9 @@ void BGAnimation::AddLayersFromAniDir( const RString &_sAniDir, const XNode *pNo
RString sImportDir;
if( pKey->GetAttrValue("Import", sImportDir) )
{
RString expr;
if( pKey->GetAttrValue("Condition",expr) )
{
if( !LuaHelpers::RunExpressionB( expr ) )
continue;
}
bool bCond;
if( pKey->GetAttrValue("Condition",bCond) && !bCond )
continue;
// import a whole BGAnimation
sImportDir = sAniDir + sImportDir;