Don't update challenge times if player is dead and deaths aren't allowed.

This commit is contained in:
Steve 2016-05-08 08:56:00 +01:00
parent a16dfeb997
commit d202610ca0
1 changed files with 6 additions and 1 deletions

View File

@ -146,8 +146,13 @@ void doChallenges(void)
if (game.currentMission->challengeData.isChallenge && battle.status == MS_IN_PROGRESS)
{
if (challengeFinished())
{
passed = 0;
if (player->health > 0 || (player->health <= 0 && game.currentMission->challengeData.allowPlayerDeath))
{
passed = updateChallenges();
}
if (passed)
{