Fixed: IfActions not fired when measure is disabled

This commit is contained in:
Birunthan Mohanathas
2012-05-30 09:46:11 +03:00
parent 8fb0be30d4
commit 9623766a61
32 changed files with 125 additions and 214 deletions

View File

@@ -78,13 +78,8 @@ void CMeasureScript::Initialize()
** Updates the current disk free space value.
**
*/
bool CMeasureScript::Update()
void CMeasureScript::UpdateValue()
{
if (!CMeasure::PreUpdate())
{
return false;
}
if (m_HasUpdateFunction)
{
m_ValueType = m_LuaScript->RunFunctionWithReturn(g_UpdateFunctionName, m_Value, m_StringValue);
@@ -95,8 +90,6 @@ bool CMeasureScript::Update()
m_ValueType = m_LuaScript->RunFunctionWithReturn(g_GetStringFunctionName, m_Value, m_StringValue);
}
}
return PostUpdate();
}
/*