From 785324408795390b5dc289131510400a55ad1b26 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 8 May 2016 08:43:37 +0100 Subject: [PATCH] End challenge if player has escaped. --- src/challenges/challenges.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/challenges/challenges.c b/src/challenges/challenges.c index d0d5ef7..fb0b2e7 100644 --- a/src/challenges/challenges.c +++ b/src/challenges/challenges.c @@ -199,17 +199,7 @@ static int challengeFinished(void) return 1; } - if (game.currentMission->challengeData.scriptedEnd) - { - return 1; - } - - if (player->health <= 0) - { - return 1; - } - - return 0; + return (player->health <= 0 || player->alive == ALIVE_ESCAPED || game.currentMission->challengeData.scriptedEnd); } static int updateChallenges(void)