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