From 2459f9041239252e36811e7a9095d8838181bdc6 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sat, 12 Jun 2021 17:33:16 +0000 Subject: [PATCH] Disabled clearing next AI action in CancelAIAction as it may interfere with scripted actions code. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9077 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 3553ed181..4b9f5508c 100644 --- a/TacticalAI/AIMain.cpp +++ b/TacticalAI/AIMain.cpp @@ -1470,13 +1470,13 @@ void CancelAIAction(SOLDIERTYPE *pSoldier, UINT8 ubForce) ActionDone(pSoldier); // sevenfm: reset next action - if(!AreInMeanwhile()) + /*if(!AreInMeanwhile()) { pSoldier->aiData.bNextAction = AI_ACTION_NONE; pSoldier->aiData.usNextActionData = 0; pSoldier->aiData.bNextTargetLevel = 0; pSoldier->iNextActionSpecialData = 0; - } + }*/ }