Fix alien animations after 5d4dfd8cb5
parent
5d4dfd8cb5
commit
935b789d02
|
@ -530,7 +530,12 @@ void COldObject::DestroyObject(DestructionType type, CObject* killer)
|
||||||
pyroType = Gfx::PT_WPCHECK;
|
pyroType = Gfx::PT_WPCHECK;
|
||||||
}
|
}
|
||||||
assert(pyroType != Gfx::PT_NULL);
|
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);
|
m_engine->GetPyroManager()->Create(pyroType, this);
|
||||||
|
|
||||||
if ( Implements(ObjectInterfaceType::Programmable) )
|
if ( Implements(ObjectInterfaceType::Programmable) )
|
||||||
|
|
Loading…
Reference in New Issue