From 08ba4f9323a53899bb8c6071047d026b670e4b45 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sun, 13 Jun 2021 17:46:21 +0000 Subject: [PATCH] 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 --- TacticalAI/AIMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TacticalAI/AIMain.cpp b/TacticalAI/AIMain.cpp index 4b9f5508c..4bbf3e200 100644 --- a/TacticalAI/AIMain.cpp +++ b/TacticalAI/AIMain.cpp @@ -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; }