start changing Lua to a singleton object
This commit is contained in:
@@ -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( !LUA->RunExpressionB( expr ) )
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -672,7 +672,7 @@ bool BGAnimationLayer::EarlyAbortDraw()
|
||||
if( m_sDrawCond.empty() )
|
||||
return false;
|
||||
|
||||
if( !Lua::RunExpressionB( m_sDrawCond ) )
|
||||
if( !LUA->RunExpressionB( m_sDrawCond ) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user