CancelAIAction: improved condition to allow cover check.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9081 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-06-13 17:46:21 +00:00
parent ff3076203f
commit 08ba4f9323
+2 -2
View File
@@ -1451,11 +1451,11 @@ void CancelAIAction(SOLDIERTYPE *pSoldier, UINT8 ubForce)
DebugAI(AI_MSG_INFO, pSoldier, String("CancelAIAction"));
// re-enable cover checking, something is new or something strange happened
if ( gGameExternalOptions.fEnemyTanksCanMoveInTactical || !ARMED_VEHICLE( pSoldier ) || !ENEMYROBOT( pSoldier ) )//dnl ch64 290813
if (!TANK(pSoldier) || gGameExternalOptions.fEnemyTanksCanMoveInTactical)
SkipCoverCheck = FALSE;
// turn off new situation flag to stop this from repeating all the time!
if ( pSoldier->aiData.bNewSituation == IS_NEW_SITUATION )
if (pSoldier->aiData.bNewSituation == IS_NEW_SITUATION)
{
pSoldier->aiData.bNewSituation = WAS_NEW_SITUATION;
}