2 bugfixes by Malachy, related to message sensor / ipo actuator firing wrongly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user