mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fix AI units to reload/rechamber off-hand when necessary
Fix to prevent soldiers from climbing the wrong building while moving toward a disturbance Fix to prevent soldiers from doing nothing when a climb point is not nearby Fix improper indexing of directions git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1533 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -429,7 +429,7 @@ INT8 DecideAutoBandage( SOLDIERTYPE * pSoldier )
|
||||
{
|
||||
pSoldier->bSlotItemTakenFrom = bSlot;
|
||||
|
||||
SwapObjs( &(pSoldier->inv[HANDPOS]), &(pSoldier->inv[bSlot]) );
|
||||
SwapObjs( pSoldier, HANDPOS, bSlot );
|
||||
/*
|
||||
memset( &TempObj, 0, sizeof( OBJECTTYPE ) );
|
||||
// move the med kit out to temp obj
|
||||
@@ -452,7 +452,7 @@ INT8 DecideAutoBandage( SOLDIERTYPE * pSoldier )
|
||||
{
|
||||
pSoldier->bSlotItemTakenFrom = bSlot;
|
||||
|
||||
SwapObjs( &(pSoldier->inv[HANDPOS]), &(pSoldier->inv[bSlot]) );
|
||||
SwapObjs( pSoldier, HANDPOS, bSlot );
|
||||
}
|
||||
return( pSoldier->bAction );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user