Complete mission on escape only in campaign mode.

This commit is contained in:
Steve 2016-05-08 08:44:14 +01:00
parent 7853244087
commit 98f9663edb
1 changed files with 2 additions and 2 deletions

View File

@ -253,12 +253,12 @@ void doFighter(void)
if (self->alive == ALIVE_ESCAPED) if (self->alive == ALIVE_ESCAPED)
{ {
if (self == player) if (self == player && !game.currentMission->challengeData.isChallenge)
{ {
completeMission(); 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.")); addHudMessage(colors.red, _("Mission target has escaped."));
battle.stats[STAT_ENEMIES_ESCAPED]++; battle.stats[STAT_ENEMIES_ESCAPED]++;