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:
@@ -2263,7 +2263,11 @@ BOOLEAN OKToAddMercToWorld( SOLDIERTYPE *pSoldier, INT8 bDirection )
|
||||
STRUCTURE_FILE_REF *pStructFileRef;
|
||||
UINT16 usOKToAddStructID;
|
||||
|
||||
//if ( pSoldier->uiStatusFlags & SOLDIER_MULTITILE )
|
||||
// 0verhaul: Reinserting this check. If a soldier is sitting or standing on a grid and another soldier is lying prone
|
||||
// across that grid but has the structure, this call will not allow the current soldier to turn. Since we are talking
|
||||
// about the soldier whose turn it is, this is not a good thing because it will lead to deadlock.
|
||||
if ( pSoldier->uiStatusFlags & SOLDIER_MULTITILE ||
|
||||
pSoldier->usAnimState == CRAWLING)
|
||||
{
|
||||
// Get surface data
|
||||
usAnimSurface = GetSoldierAnimationSurface( pSoldier, pSoldier->usAnimState );
|
||||
|
||||
Reference in New Issue
Block a user