Fix collision persistence of exploding Heavy bots
parent
c80a816808
commit
83a32b36b3
|
@ -2525,7 +2525,7 @@ int CPhysics::ObjectAdapt(const Math::Vector &pos, const Math::Vector &angle)
|
||||||
{
|
{
|
||||||
if ( pObj == m_object ) continue; // yourself?
|
if ( pObj == m_object ) continue; // yourself?
|
||||||
if (IsObjectBeingTransported(pObj)) continue;
|
if (IsObjectBeingTransported(pObj)) continue;
|
||||||
//if ( pObj->Implements(ObjectInterfaceType::Destroyable) && dynamic_cast<CDestroyableObject*>(pObj)->IsDying() ) continue; // is burning or exploding?
|
if ( pObj->Implements(ObjectInterfaceType::Destroyable) && dynamic_cast<CDestroyableObject*>(pObj)->GetDying() == DeathType::Exploding ) continue; // is exploding?
|
||||||
|
|
||||||
oType = pObj->GetType();
|
oType = pObj->GetType();
|
||||||
if ( oType == OBJECT_TOTO ) continue;
|
if ( oType == OBJECT_TOTO ) continue;
|
||||||
|
|
Loading…
Reference in New Issue