remove "Cond"
This commit is contained in:
@@ -43,7 +43,7 @@ void BGAnimation::AddLayersFromAniDir( const CString &_sAniDir, const IniFile& i
|
||||
|
||||
{
|
||||
CString expr;
|
||||
if( ini.GetValue( "BGAnimation", "Condition", expr ) || ini.GetValue( "BGAnimation", "Cond", expr ) )
|
||||
if( ini.GetValue("BGAnimation", "Condition", expr) )
|
||||
{
|
||||
if( !LuaHelpers::RunExpressionB( expr ) )
|
||||
return;
|
||||
|
||||
@@ -375,7 +375,7 @@ void BGAnimationLayer::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||
|
||||
{
|
||||
CString expr;
|
||||
if( pNode->GetAttrValue("Cond",expr) || pNode->GetAttrValue("Condition",expr) )
|
||||
if( pNode->GetAttrValue("Condition", expr) )
|
||||
{
|
||||
if( !LuaHelpers::RunExpressionB(expr) )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user