Active unit count as health > 0.

This commit is contained in:
Steve 2015-11-01 13:35:35 +00:00
parent 4d745dc74e
commit 2ed49023fd
1 changed files with 9 additions and 6 deletions

View File

@ -70,7 +70,9 @@ void doEntities(void)
case ET_FIGHTER:
doFighter();
if (self->side == SIDE_ALLIES)
if (e->health > 0)
{
if (e->side == SIDE_ALLIES)
{
numActiveAllies++;
}
@ -78,6 +80,7 @@ void doEntities(void)
{
numActiveEnemies++;
}
}
break;