Remove wander flag when retreating.
This commit is contained in:
parent
3abca20b28
commit
8e8e0394fd
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue