Prevent ALL_OBJECTIVES_COMPLETE from firing more than once.
This commit is contained in:
parent
da6e43b071
commit
1757df1340
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue