AI should only move to leader on same side.
This commit is contained in:
parent
df04ff1439
commit
164b35a8c0
|
@ -727,7 +727,7 @@ static int lookForLeader(void)
|
||||||
|
|
||||||
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
|
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);
|
distance = getDistance(self->x, self->y, e->x, e->y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue