Skip to content

Commit

Permalink
Don't count surrendered as alive between stages
Browse files Browse the repository at this point in the history
  • Loading branch information
MeridianOXC committed Dec 2, 2023
1 parent 23e0ccc commit 4016c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Battlescape/BattlescapeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void BattlescapeGenerator::nextStage()
{
if (bu->getOriginalFaction() == FACTION_HOSTILE && !bu->isOut())
{
if (bu->getOriginalFaction() == bu->getFaction())
if (bu->getOriginalFaction() == bu->getFaction() && !bu->isSurrendering())
{
aliensAlive++;
}
Expand Down

0 comments on commit 4016c43

Please sign in to comment.