mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fix for freeze when AI killed by mines or other self-inflicted wounds
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1150 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1213,6 +1213,12 @@ void ActionDone(SOLDIERTYPE *pSoldier)
|
|||||||
// although NewDest isn't called. A newSit. could cancel it before then!
|
// although NewDest isn't called. A newSit. could cancel it before then!
|
||||||
pSoldier->bPathStored = FALSE;
|
pSoldier->bPathStored = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pSoldier->uiStatusFlags & SOLDIER_DEAD)
|
||||||
|
{
|
||||||
|
// The last action killed the soldier (stepped on a mine, detonated a LAW too close, etc)
|
||||||
|
EndAIGuysTurn( pSoldier);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user