Epic battle bug fixes.

This commit is contained in:
Steve 2015-11-19 12:44:56 +00:00
parent b5b72e85e3
commit c61b591f75
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ void doEntities(void)
if (e->type == ET_FIGHTER && (battle.epic || e->active)) if (e->type == ET_FIGHTER && (battle.epic || e->active))
{ {
if (self->side == SIDE_ALLIES) if (e->side == SIDE_ALLIES)
{ {
numAllies++; numAllies++;
} }

View File

@ -181,7 +181,7 @@ void initPlayerSelect(void)
for (e = battle.entityHead.next ; e != NULL ; e = e->next) for (e = battle.entityHead.next ; e != NULL ; e = e->next)
{ {
if (e->type == ET_FIGHTER && e->health > 0 && e->side == SIDE_ALLIES && selectedPlayerIndex < MAX_SELECTABLE_PLAYERS) if (e->active && e->type == ET_FIGHTER && e->health > 0 && e->side == SIDE_ALLIES && selectedPlayerIndex < MAX_SELECTABLE_PLAYERS)
{ {
availablePlayerUnits[selectedPlayerIndex++] = e; availablePlayerUnits[selectedPlayerIndex++] = e;
} }