From 604526611acc1855778cfdccf224d35d7c860d0e Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 16 Mar 2016 06:53:20 +0000 Subject: [PATCH] Increased flock leading distance. --- src/battle/ai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index 8cbdf27..2fc03d9 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -607,7 +607,7 @@ static void moveToPlayer(void) { if (fabs(player->dx) >= 1 && fabs(player->dy) >= 1) { - wantedAngle = getAngle(player->x, player->y, player->x + (player->dx * 100), player->y + (player->dy * 100)); + wantedAngle = getAngle(player->x, player->y, player->x + (player->dx * 1000), player->y + (player->dy * 1000)); turnToFace(wantedAngle); @@ -805,7 +805,7 @@ static void moveToLeader(void) { if (fabs(self->leader->dx) >= 1 && fabs(self->leader->dy) >= 1) { - wantedAngle = getAngle(self->leader->x, self->leader->y, self->leader->x + (self->leader->dx * 10), self->leader->y + (self->leader->dy * 10)); + wantedAngle = getAngle(self->leader->x, self->leader->y, self->leader->x + (self->leader->dx * 1000), self->leader->y + (self->leader->dy * 1000)); turnToFace(wantedAngle);