Epic battle kill count bug fix.
This commit is contained in:
parent
9ea17341e3
commit
b97cfb0356
|
@ -284,8 +284,6 @@ void doFighter(void)
|
|||
if (self->alive == ALIVE_DEAD)
|
||||
{
|
||||
if (player != NULL && self != player)
|
||||
{
|
||||
if (player->alive == ALIVE_ALIVE)
|
||||
{
|
||||
if (self->side != SIDE_ALLIES)
|
||||
{
|
||||
|
@ -295,7 +293,7 @@ void doFighter(void)
|
|||
|
||||
runScriptFunction("ENEMIES_KILLED %d", battle.stats[STAT_ENEMIES_KILLED]);
|
||||
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "ENEMIES_KILLED [%d / %d]", battle.stats[STAT_ENEMIES_KILLED], battle.numInitialEnemies);
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "Enemies killed [%d / %d]", battle.stats[STAT_ENEMIES_KILLED], battle.numInitialEnemies);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -321,7 +319,6 @@ void doFighter(void)
|
|||
runScriptFunction("ALLIES_KILLED %d", battle.stats[STAT_ALLIES_KILLED]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
updateObjective(self->name, TT_DESTROY);
|
||||
updateObjective(self->groupName, TT_DESTROY);
|
||||
|
|
Loading…
Reference in New Issue