Skip to content

Commit

Permalink
Make sure to always check the evac trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
MeridianOXC committed Dec 2, 2023
1 parent 4016c43 commit 57c2ebe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Geoscape/DogfightState.cpp
Expand Up @@ -1453,7 +1453,8 @@ void DogfightState::update()
setStatus("STR_INTERCEPTOR_DESTROYED");
if (_ufoIsAttacking)
{
_craft->evacuateCrew(_game->getMod());
// Note: this was moved to GeoscapeState.cpp, as it is not 100% reliable here
//_craft->evacuateCrew(_game->getMod());
}
_timeout += 30;
_game->getMod()->getSound("GEO.CAT", Mod::INTERCEPTOR_EXPLODE)->play();
Expand Down
5 changes: 5 additions & 0 deletions src/Geoscape/GeoscapeState.cpp
Expand Up @@ -1123,6 +1123,11 @@ void GeoscapeState::time5Seconds()
break;
}
}
//if (_ufoIsAttacking)
{
// Note: this was moved from DogfightState.cpp, as it was not 100% reliable there
xcraft->evacuateCrew(_game->getMod());
}
// if a transport craft has been shot down, kill all the soldiers on board.
if (xcraft->getRules()->getMaxUnits() > 0)
{
Expand Down

0 comments on commit 57c2ebe

Please sign in to comment.