From 8e8e0394fdc5d401901b6b3c17e52e66d4e90b08 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 17 May 2016 11:17:54 +0100 Subject: [PATCH] Remove wander flag when retreating. --- src/battle/fighters.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 6835ff4..120d324 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -656,6 +656,7 @@ void retreatEnemies(void) e->aiFlags |= AIF_AVOIDS_COMBAT; e->aiFlags |= AIF_UNLIMITED_RANGE; e->aiFlags &= ~AIF_MOVES_TO_LEADER; + e->aiFlags &= ~AIF_WANDERS; if (!game.currentMission->challengeData.isChallenge) { @@ -680,6 +681,7 @@ void retreatAllies(void) e->aiFlags &= ~AIF_FOLLOWS_PLAYER; e->aiFlags &= ~AIF_MOVES_TO_PLAYER; e->aiFlags &= ~AIF_MOVES_TO_LEADER; + e->aiFlags &= ~AIF_WANDERS; if (!game.currentMission->challengeData.isChallenge) {