From 2791046eff80a254f8473329732db91829de5708 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 2 Jun 2016 09:50:23 +0100 Subject: [PATCH] Surrender limit should only count surrenders. --- src/challenges/challenges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/challenges/challenges.c b/src/challenges/challenges.c index 738ea0f..3302e24 100644 --- a/src/challenges/challenges.c +++ b/src/challenges/challenges.c @@ -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; }