Skip to content

Commit

Permalink
tally me banana!
Browse files Browse the repository at this point in the history
reflect the number of soldiers saved in the debriefing screen
  • Loading branch information
Warboy1982 committed Oct 23, 2017
1 parent 97e5306 commit 60237ce
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/Battlescape/DebriefingState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,24 @@ void DebriefingState::prepareDebriefing()
_txtTitle->setText(tr("STR_ALIENS_DEFEATED"));
if (objectiveCompleteText != "")
{
addStat(objectiveCompleteText, 1, objectiveCompleteScore);
int victoryStat = 0;
if (ruleDeploy->getEscapeType() != ESCAPE_NONE)
{
if (ruleDeploy->getEscapeType() != ESCAPE_EXIT)
{
victoryStat += playersInEntryArea;
}
if (ruleDeploy->getEscapeType() != ESCAPE_ENTRY)
{
victoryStat += playersInExitArea;
}
}
else
{
victoryStat = 1;
}

addStat(objectiveCompleteText, victoryStat, objectiveCompleteScore);
}
}

Expand Down

0 comments on commit 60237ce

Please sign in to comment.