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