Don't head for the jumpgate if retreating during a challenge.

This commit is contained in:
Steve 2016-05-13 09:05:27 +01:00
parent b9b8f524b3
commit 2920b00e96
1 changed files with 10 additions and 2 deletions

View File

@ -645,8 +645,12 @@ void retreatEnemies(void)
e->aiFlags |= AIF_AVOIDS_COMBAT;
e->aiFlags |= AIF_UNLIMITED_RANGE;
e->aiFlags |= AIF_GOAL_JUMPGATE;
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
if (!game.currentMission->challengeData.isChallenge)
{
e->aiFlags |= AIF_GOAL_JUMPGATE;
}
}
}
}
@ -663,10 +667,14 @@ void retreatAllies(void)
e->aiFlags |= AIF_AVOIDS_COMBAT;
e->aiFlags |= AIF_UNLIMITED_RANGE;
e->aiFlags |= AIF_GOAL_JUMPGATE;
e->aiFlags &= ~AIF_FOLLOWS_PLAYER;
e->aiFlags &= ~AIF_MOVES_TO_PLAYER;
e->aiFlags &= ~AIF_MOVES_TO_LEADER;
if (!game.currentMission->challengeData.isChallenge)
{
e->aiFlags |= AIF_GOAL_JUMPGATE;
}
}
}
}