mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user