LuaHelpers::RunExpressionB

This commit is contained in:
Glenn Maynard
2005-06-16 06:23:59 +00:00
parent 914acb4b7b
commit 6a8940d5a4
6 changed files with 16 additions and 8 deletions
+2 -2
View File
@@ -376,7 +376,7 @@ void BGAnimationLayer::LoadFromNode( const CString& sDir, const XNode* pNode )
CString expr;
if( pNode->GetAttrValue("Cond",expr) || pNode->GetAttrValue("Condition",expr) )
{
if( !LUA->RunExpressionB(expr) )
if( !LuaHelpers::RunExpressionB(expr) )
return;
}
}
@@ -668,7 +668,7 @@ bool BGAnimationLayer::EarlyAbortDraw()
return false;
// TODO: Is it ok to evaluate this every frame?
if( !LUA->RunExpressionB(m_sDrawCond) )
if( !LuaHelpers::RunExpressionB(m_sDrawCond) )
return true;
return false;