Fix AI deadlock when multiple soldiers occupy the same tile

Fix to reset Pablo so that future thefts can also be punished


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1169 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Overhaul
2007-08-07 05:10:05 +00:00
parent f5e3e7d7ff
commit 6de05c3fe1
9 changed files with 1702 additions and 1691 deletions
+4
View File
@@ -7224,6 +7224,10 @@ BOOLEAN ProcessImplicationsOfPCAttack( SOLDIERTYPE * pSoldier, SOLDIERTYPE ** pp
else if (pTarget->ubProfile == PABLO && pTarget->bLife >= OKLIFE && CheckFact( FACT_PABLO_PUNISHED_BY_PLAYER, 0 ) && !CheckFact( 38, 0 ) )
{
TriggerNPCRecord( PABLO, 3 );
// Nailed Pablo. So reset the fact that he stole from the last shipment since he's supposed to be returning
// the goods now.
SetFactFalse( FACT_PABLOS_STOLE_FROM_LATEST_SHIPMENT);
SetFactFalse( FACT_PLAYER_FOUND_ITEMS_MISSING);
}
else
{