Active unit count as health > 0.
This commit is contained in:
parent
4d745dc74e
commit
2ed49023fd
|
@ -70,13 +70,16 @@ void doEntities(void)
|
|||
case ET_FIGHTER:
|
||||
doFighter();
|
||||
|
||||
if (self->side == SIDE_ALLIES)
|
||||
if (e->health > 0)
|
||||
{
|
||||
numActiveAllies++;
|
||||
}
|
||||
else
|
||||
{
|
||||
numActiveEnemies++;
|
||||
if (e->side == SIDE_ALLIES)
|
||||
{
|
||||
numActiveAllies++;
|
||||
}
|
||||
else
|
||||
{
|
||||
numActiveEnemies++;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue