From e45485cee8df2f7a070ac329d6e48b9b327aa300 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 19 May 2016 16:52:47 +0100 Subject: [PATCH] Don't display messages if you're a Pandoran ship. --- src/battle/capitalShips.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/battle/capitalShips.c b/src/battle/capitalShips.c index 908cef5..2b9ae93 100644 --- a/src/battle/capitalShips.c +++ b/src/battle/capitalShips.c @@ -258,7 +258,7 @@ static void componentDie(void) { runScriptFunction("CAP_HEALTH %s %d", self->owner->name, self->owner->health); - if (self->side == player->side) + if (self->side != SIDE_PANDORAN && self->side == player->side) { issueDamageMessage(self->owner); } @@ -284,7 +284,7 @@ static void gunDie(void) runScriptFunction("CAP_GUNS_DESTROYED %s", self->owner->name); - if (self->side == player->side) + if (self->side != SIDE_PANDORAN && self->side == player->side) { issueGunsDestroyedMessage(self->owner); } @@ -328,7 +328,7 @@ static void engineDie(void) runScriptFunction("CAP_ENGINES_DESTROYED %s", self->owner->name); - if (self->side == player->side) + if (self->side != SIDE_PANDORAN && self->side == player->side) { issueEnginesDestroyedMessage(self->owner); }