mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: mercs move medical equipment into their hands on non-medical assignments
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7442 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5824,10 +5824,10 @@ void HandleDiseaseSectorTreatment()
|
||||
UINT32 uiCnt = 0;
|
||||
for ( uiCnt = 0, pSoldier = MercPtrs[uiCnt]; uiCnt <= gTacticalStatus.Team[gbPlayerNum].bLastID; ++uiCnt, pSoldier++ )
|
||||
{
|
||||
MakeSureMedKitIsInHand( pSoldier );
|
||||
|
||||
if ( pSoldier->bActive && pSoldier->bAssignment == DISEASE_DOCTOR_SECTOR && CanCharacterTreatSectorDisease( pSoldier ) && !pSoldier->flags.fMercAsleep && EnoughTimeOnAssignment( pSoldier ) )
|
||||
{
|
||||
MakeSureMedKitIsInHand( pSoldier );
|
||||
|
||||
// get available healing pts
|
||||
UINT16 max = 0;
|
||||
UINT16 ptsavailable = CalculateHealingPointsForDoctor( pSoldier, &max, TRUE );
|
||||
|
||||
Reference in New Issue
Block a user