Fixes (by Sevenfm):

- wrong level calculation for suppression resistance with friends
- incorrect buddy handling
- incorrect PoW, medic, wounded determination

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8643 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2018-12-02 14:59:08 +00:00
parent 389f40ba3d
commit 8b58f9a1bf
4 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -3166,7 +3166,7 @@ UINT8 GetClosestFlaggedSoldierID( SOLDIERTYPE * pSoldier, INT16 aRange, UINT8 au
// this is not for tanks
if ( ARMED_VEHICLE( pFriend ) )
return FALSE;
continue;
// skip if this guy is dead
if ( pFriend->stats.bLife <= 0 )
@@ -3219,7 +3219,7 @@ UINT8 GetClosestWoundedSoldierID( SOLDIERTYPE * pSoldier, INT16 aRange, UINT8 au
// this is not for tanks
if ( ARMED_VEHICLE( pFriend ) )
return FALSE;
continue;
// skip if this guy is dead, or not wounded (enough)
if ( pFriend->stats.bLife <= 0 || pFriend->iHealableInjury < gGameExternalOptions.sEnemyMedicsWoundMinAmount )
@@ -3268,7 +3268,7 @@ UINT8 GetClosestMedicSoldierID( SOLDIERTYPE * pSoldier, INT16 aRange, UINT8 auTe
// this is not for tanks
if ( ARMED_VEHICLE( pFriend ) )
return FALSE;
continue;
// skip this guy if he is dead or unconscious
if ( pFriend->stats.bLife < OKLIFE )