Prevent AI deadlocks

Canceling current AI actions at the start of soldier's turn prevents a lot of ai deadlocks. The status RED & BLACK actions are supposed re-evaluate the situation every turn anyways
This commit is contained in:
Asdow
2023-08-19 14:37:49 +03:00
parent a0cbe42a01
commit 138ad0656f
+1
View File
@@ -1817,6 +1817,7 @@ void RefreshAI(SOLDIERTYPE *pSoldier)
if ((pSoldier->aiData.bAlertStatus == STATUS_BLACK) || (pSoldier->aiData.bAlertStatus == STATUS_RED))
{
// always freshly rethink things at start of his turn
CancelAIAction(pSoldier, FALSE);
pSoldier->aiData.bNewSituation = IS_NEW_SITUATION;
}
else