From 935b789d020b9f646a2d0a11b95b04dca72d97e9 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 24 May 2017 10:45:31 +0200 Subject: [PATCH] Fix alien animations after 5d4dfd8cb56066bd170e39adaff6e995a1646806 --- src/object/old_object.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/object/old_object.cpp b/src/object/old_object.cpp index 2178d326..dbe92b32 100644 --- a/src/object/old_object.cpp +++ b/src/object/old_object.cpp @@ -530,7 +530,12 @@ void COldObject::DestroyObject(DestructionType type, CObject* killer) pyroType = Gfx::PT_WPCHECK; } assert(pyroType != Gfx::PT_NULL); - SetDying(DeathType::Exploding); + if (pyroType == Gfx::PT_FRAGT || + pyroType == Gfx::PT_FRAGO || + pyroType == Gfx::PT_FRAGW) + { + SetDying(DeathType::Exploding); + } m_engine->GetPyroManager()->Create(pyroType, this); if ( Implements(ObjectInterfaceType::Programmable) )