React quickly to retreat call (might be wandering for several more seconds).
This commit is contained in:
parent
8e8e0394fd
commit
f8590ce106
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue