Include capital ships in initial enemy count.

This commit is contained in:
Steve 2016-05-05 14:05:27 +01:00
parent a2736e1533
commit 1acd6f7cf4
1 changed files with 1 additions and 0 deletions

View File

@ -605,6 +605,7 @@ void countNumEnemies(void)
for (e = battle.entityHead.next ; e != NULL ; e = e->next) 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->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++; battle.numInitialEnemies++;
} }