Bugfix from Malachy, for some IPO logic brick changes.

This commit is contained in:
Erwin Coumans 2007-01-10 01:16:49 +00:00
parent 0f7650622a
commit 983fc9ab89

@ -204,8 +204,8 @@ bool KX_IpoActuator::Update(double curtime, bool frame)
for (vector<CValue*>::iterator i=m_events.end(); !(i==m_events.begin());)
{
--i;
// if ((*i)->GetNumber() == 0.0f)
// bNegativeEvent = true;
if ((*i)->GetNumber() == 0.0f)
bNegativeEvent = true;
(*i)->Release();
}
@ -227,6 +227,7 @@ bool KX_IpoActuator::Update(double curtime, bool frame)
case KX_ACT_IPO_PLAY:
{
// Check if playing forwards. result = ! finished
bNegativeEvent = false; // quick fix for message IPO issue
if (start_smaller_then_end > 0.0)
result = (m_localtime < m_endframe && !(m_localtime == m_startframe && bNegativeEvent));
else