Prevent ALL_OBJECTIVES_COMPLETE from firing twice.

This commit is contained in:
Steve 2017-05-29 08:39:37 +01:00
parent 866ad5ef37
commit ab2e3a09db
1 changed files with 5 additions and 5 deletions

View File

@ -84,9 +84,9 @@ void doObjectives(void)
{
if (fireObjectivesComplete)
{
runScriptFunction("ALL_OBJECTIVES_COMPLETE");
fireObjectivesComplete = 0;
runScriptFunction("ALL_OBJECTIVES_COMPLETE");
}
if (!battle.manualComplete)
@ -154,11 +154,11 @@ void updateObjective(char *name, int type)
}
}
if (completed == battle.numObjectivesTotal && !hasHidden && !fireObjectivesComplete)
if (completed == battle.numObjectivesTotal && !hasHidden && fireObjectivesComplete)
{
runScriptFunction("ALL_OBJECTIVES_COMPLETE");
fireObjectivesComplete = 0;
runScriptFunction("ALL_OBJECTIVES_COMPLETE");
}
}
}