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