2 bugfixes by Malachy, related to message sensor / ipo actuator firing wrongly

This commit is contained in:
Erwin Coumans
2007-01-07 04:35:33 +00:00
parent 275a5a94b9
commit cf4d627897
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ bool KX_NetworkMessageSensor::Evaluate(CValue* event)
bool result = false;
bool WasUp = m_IsUp;
// m_IsUp = false;
m_IsUp = false;
if (m_BodyList) {
m_BodyList->Release();
@@ -153,7 +153,7 @@ bool KX_NetworkMessageSensor::IsPositiveTrigger()
//attempt to fix [ #3809 ] IPO Actuator does not work with some Sensors
//a better solution is to properly introduce separate Edge and Level triggering concept
return true;//m_IsUp;
return m_IsUp;
}
/* --------------------------------------------------------------------- */

View File

@@ -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();
}