Attempt to complete eliminate all objective immediately, if no enemies are remaining.

This commit is contained in:
Steve 2015-12-31 11:31:36 +00:00
parent fb8063b581
commit 1115309331
1 changed files with 5 additions and 0 deletions

View File

@ -206,6 +206,11 @@ void activateObjectives(char *objectives)
{
addHudMessage(colors.cyan, "New Objective : %s", o->description);
o->active = 1;
if (o->isEliminateAll && battle.stats[STAT_ENEMIES_KILLED] == battle.numInitialEnemies)
{
updateObjective(o->targetName, o->targetType);
}
}
}