From 98f9663edb645d37e6e8465bfab6673f8e75c23c Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 8 May 2016 08:44:14 +0100 Subject: [PATCH] Complete mission on escape only in campaign mode. --- src/battle/fighters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index f58c067..54e4b17 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -253,12 +253,12 @@ void doFighter(void) if (self->alive == ALIVE_ESCAPED) { - if (self == player) + if (self == player && !game.currentMission->challengeData.isChallenge) { completeMission(); } - if (self->side != SIDE_ALLIES && (!(self->flags & EF_DISABLED))) + if (self->side != player->side && (!(self->flags & EF_DISABLED))) { addHudMessage(colors.red, _("Mission target has escaped.")); battle.stats[STAT_ENEMIES_ESCAPED]++;