Permalink
Browse files

re-prioritize failed mission heading

  • Loading branch information...
Warboy1982 committed Jul 17, 2018
1 parent 27016eb commit e7d728fd8a2df56bc4c3a9d514a91787b33c78ed
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Battlescape/DebriefingState.cpp
@@ -1273,6 +1273,7 @@ void DebriefingState::prepareDebriefing()
}
}
}
bool lostCraft = false;
if (craft != 0 && ((playersInExitArea == 0 && aborted) || (playersSurvived == 0)))
{
addStat("STR_XCOM_CRAFT_LOST", 1, -craft->getRules()->getScore());
@@ -1281,8 +1282,8 @@ void DebriefingState::prepareDebriefing()
// all vehicle object in the craft is also referenced by base->getVehicles() !!)
delete craft;
craft = 0; // To avoid a crash down there!!
lostCraft = true;
base->getCrafts()->erase(craftIterator);
_txtTitle->setText(tr("STR_CRAFT_IS_LOST"));
playersSurvived = 0; // assuming you aborted and left everyone behind
success = false;
}
@@ -1375,7 +1376,11 @@ void DebriefingState::prepareDebriefing()
}
else
{
if (target == "STR_BASE")
if (lostCraft)
{
_txtTitle->setText(tr("STR_CRAFT_IS_LOST"));
}
else if (target == "STR_BASE")
{
_txtTitle->setText(tr("STR_BASE_IS_LOST"));
_destroyBase = true;

0 comments on commit e7d728f

Please sign in to comment.