Surrender limit should only count surrenders.

This commit is contained in:
Steve 2016-06-02 09:50:23 +01:00
parent 013c992221
commit 2791046eff
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ static int challengeFinished(void)
return 1;
}
if (game.currentMission->challengeData.surrenderLimit > 0 && (battle.stats[STAT_ENEMIES_KILLED_PLAYER] + battle.stats[STAT_ENEMIES_SURRENDERED] + battle.stats[STAT_ENEMIES_DISABLED]) >= game.currentMission->challengeData.surrenderLimit)
if (game.currentMission->challengeData.surrenderLimit > 0 && battle.stats[STAT_ENEMIES_SURRENDERED] >= game.currentMission->challengeData.surrenderLimit)
{
return 1;
}