Prevent ALL_OBJECTIVES_COMPLETE from firing more than once.

This commit is contained in:
Steve 2016-05-28 11:40:56 +01:00
parent da6e43b071
commit 1757df1340
1 changed files with 3 additions and 1 deletions

View File

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