From bd715286a1c88de0e2913f1e9a9cc56d7706cb2f Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 7 Mar 2016 12:31:43 +0000 Subject: [PATCH] Allows show killed message during a challenge battle. --- src/battle/fighters.c | 4 ++-- src/battle/fighters.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 9d4d853..dc03edd 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -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")); } diff --git a/src/battle/fighters.h b/src/battle/fighters.h index c6c420b..11c3600 100644 --- a/src/battle/fighters.h +++ b/src/battle/fighters.h @@ -53,3 +53,4 @@ extern Battle battle; extern Colors colors; extern Entity *player; extern Entity *self; +extern Game game;