Fix mission end before astronaut death scene is finished (#848)
parent
5722fdb163
commit
f33ffaf18b
|
@ -2654,7 +2654,10 @@ bool COldObject::IsDying()
|
|||
|
||||
bool COldObject::GetActive()
|
||||
{
|
||||
return !GetLock() && !(Implements(ObjectInterfaceType::Destroyable) && IsDying()) && !m_bFlat;
|
||||
// Dying astronaut (m_dying == DeathType::Dead) should be treated as active
|
||||
// This is for EndMissionTake to not detect him as actually dead until the animation is finished
|
||||
|
||||
return !GetLock() && !(Implements(ObjectInterfaceType::Destroyable) && IsDying() && GetDying() != DeathType::Dead) && !m_bFlat;
|
||||
}
|
||||
|
||||
bool COldObject::GetDetectable()
|
||||
|
|
Loading…
Reference in New Issue