Fix alien animations after 5d4dfd8cb5

master
krzys-h 2017-05-24 10:45:31 +02:00
parent 5d4dfd8cb5
commit 935b789d02
1 changed files with 6 additions and 1 deletions

View File

@ -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) )