Allows show killed message during a challenge battle.

This commit is contained in:
Steve 2016-03-07 12:31:43 +00:00
parent 6ef07a65e2
commit bd715286a1
2 changed files with 3 additions and 2 deletions

View File

@ -285,7 +285,7 @@ void doFighter(void)
if (strcmp(self->name, "Civilian") == 0)
{
battle.stats[STAT_CIVILIANS_KILLED]++;
if (!battle.isEpic)
if (!battle.isEpic || game.currentMission->challengeData.isChallenge)
{
addHudMessage(colors.red, _("Civilian has been killed"));
}
@ -293,7 +293,7 @@ void doFighter(void)
else
{
battle.stats[STAT_ALLIES_KILLED]++;
if (!battle.isEpic)
if (!battle.isEpic || game.currentMission->challengeData.isChallenge)
{
addHudMessage(colors.red, _("Ally has been killed"));
}

View File

@ -53,3 +53,4 @@ extern Battle battle;
extern Colors colors;
extern Entity *player;
extern Entity *self;
extern Game game;