React quickly to retreat call (might be wandering for several more seconds).

This commit is contained in:
Steve 2016-05-17 11:31:42 +01:00
parent 8e8e0394fd
commit f8590ce106
1 changed files with 4 additions and 0 deletions

View File

@ -658,6 +658,8 @@ void retreatEnemies(void)
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
e->aiFlags &= ~AIF_WANDERS;
e->aiActionTime = MIN(e->aiActionTime, FPS);
if (!game.currentMission->challengeData.isChallenge)
{
e->aiFlags |= AIF_GOAL_JUMPGATE;
@ -683,6 +685,8 @@ void retreatAllies(void)
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
e->aiFlags &= ~AIF_WANDERS;
e->aiActionTime = MIN(e->aiActionTime, FPS);
if (!game.currentMission->challengeData.isChallenge)
{
e->aiFlags |= AIF_GOAL_JUMPGATE;