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
@@ -180,12 +180,9 @@ Actor* ActorUtil::LoadFromNode( const RString& sDir, const XNode* pNode, Actor *
ASSERT( pNode );
{
RString expr;
if( pNode->GetAttrValue("Condition",expr) )
{
if( !LuaHelpers::RunExpressionB(expr) )
return NULL;
}
bool bCond;
if( pNode->GetAttrValue("Condition", bCond) && !bCond )
return NULL;
}
// Load Params