From 83a32b36b3a228219e07bd64afab91d8e9e9b955 Mon Sep 17 00:00:00 2001 From: Fiftytwo Date: Mon, 13 Jul 2020 20:27:40 +0200 Subject: [PATCH] Fix collision persistence of exploding Heavy bots --- src/physics/physics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index 65bebd1b..7dd79633 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -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(pObj)->IsDying() ) continue; // is burning or exploding? + if ( pObj->Implements(ObjectInterfaceType::Destroyable) && dynamic_cast(pObj)->GetDying() == DeathType::Exploding ) continue; // is exploding? oType = pObj->GetType(); if ( oType == OBJECT_TOTO ) continue;