Don't try to interpolate from prop ipo actuators

This commit is contained in:
Kester Maddock 2004-12-06 10:58:38 +00:00
parent 74256b8b7d
commit 88e435a52a

@ -367,20 +367,7 @@ bool KX_IpoActuator::Update(double curtime, bool frame)
CValue* propval = GetParent()->GetProperty(m_propname);
if (propval)
{
float target = propval->GetNumber();
float delta_time = (curtime - m_starttime)*KX_FIXED_FRAME_PER_SEC;
if (target > m_localtime)
{
m_localtime += delta_time;
if (m_localtime > target)
m_localtime = target;
}
else
{
m_localtime -= delta_time;
if (m_localtime < target)
m_localtime = target;
}
m_localtime = propval->GetNumber();
CIpoAction ipoaction(
(KX_GameObject*) GetParent(),