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
@@ -370,12 +370,9 @@ void BGAnimationLayer::LoadFromNode( const RString& sDir, const XNode* pNode )
CHECKPOINT_M( ssprintf( "BGAnimationLayer::LoadFromIni \"%s\"", sAniDir.c_str() ) );
{
RString expr;
if( pNode->GetAttrValue("Condition", expr) )
{
if( !LuaHelpers::RunExpressionB(expr) )
return;
}
bool bCond;
if( pNode->GetAttrValue("Condition", bCond) && !bCond )
return;
}
bool bStretch = false;