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

@ -147,7 +147,12 @@ void doChallenges(void)
{
if (challengeFinished())
{
passed = updateChallenges();
passed = 0;
if (player->health > 0 || (player->health <= 0 && game.currentMission->challengeData.allowPlayerDeath))
{
passed = updateChallenges();
}
if (passed)
{