Don't update challenge times if player is dead and deaths aren't allowed.
This commit is contained in:
parent
a16dfeb997
commit
d202610ca0
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue