start changing Lua to a singleton object

This commit is contained in:
Glenn Maynard
2005-01-19 22:27:24 +00:00
parent 048ff316e7
commit 91a6486f9e
8 changed files with 60 additions and 51 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( !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;