From 1acd6f7cf458909b6db6ed1d4c8da63304a595ce Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 5 May 2016 14:05:27 +0100 Subject: [PATCH] Include capital ships in initial enemy count. --- src/battle/entities.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/battle/entities.c b/src/battle/entities.c index 8333e4b..72f6540 100644 --- a/src/battle/entities.c +++ b/src/battle/entities.c @@ -605,6 +605,7 @@ void countNumEnemies(void) for (e = battle.entityHead.next ; e != NULL ; e = e->next) { if (e->side != SIDE_ALLIES && e->type == ET_FIGHTER && (!(e->flags & EF_NO_THREAT))) + if (e->side != SIDE_ALLIES && (e->type == ET_FIGHTER || e->type == ET_CAPITAL_SHIP) && (!(e->flags & EF_NO_THREAT))) { battle.numInitialEnemies++; }