Remove wander flag when retreating.

This commit is contained in:
Steve 2016-05-17 11:17:54 +01:00
parent 3abca20b28
commit 8e8e0394fd
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{