Fix collision persistence of exploding Heavy bots

fix-quicksave-sim-speed-crash
Fiftytwo 2020-07-13 20:27:40 +02:00
parent c80a816808
commit 83a32b36b3
1 changed files with 1 additions and 1 deletions
src/physics

View File

@ -2525,7 +2525,7 @@ int CPhysics::ObjectAdapt(const Math::Vector &pos, const Math::Vector &angle)
{
if ( pObj == m_object ) continue; // yourself?
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();
if ( oType == OBJECT_TOTO ) continue;