End challenge if player has escaped.

This commit is contained in:
Steve 2016-05-08 08:43:37 +01:00
parent 23e38a6313
commit 7853244087
1 changed files with 1 additions and 11 deletions

View File

@ -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)