AI should only move to leader on same side.

This commit is contained in:
Steve 2015-12-19 12:30:17 +00:00
parent df04ff1439
commit 164b35a8c0
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ static int lookForLeader(void)
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
{
if (e->active && e->flags & EF_AI_LEADER)
if (e->active && e->flags & EF_AI_LEADER && e->side == self->side)
{
distance = getDistance(self->x, self->y, e->x, e->y);