Epic battle bug fixes.
This commit is contained in:
parent
b5b72e85e3
commit
c61b591f75
|
@ -132,7 +132,7 @@ void doEntities(void)
|
|||
|
||||
if (e->type == ET_FIGHTER && (battle.epic || e->active))
|
||||
{
|
||||
if (self->side == SIDE_ALLIES)
|
||||
if (e->side == SIDE_ALLIES)
|
||||
{
|
||||
numAllies++;
|
||||
}
|
||||
|
|
|
@ -181,7 +181,7 @@ void initPlayerSelect(void)
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue