When setting up autobandage, use first aid kits before using medkits.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8576 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2018-07-14 19:41:51 +00:00
parent 8a82dae027
commit 0762a04501
2 changed files with 18 additions and 13 deletions
+9 -4
View File
@@ -421,11 +421,16 @@ INT8 DecideAutoBandage( SOLDIERTYPE * pSoldier )
return( AI_ACTION_NONE );
}
bSlot = FindObjClass( pSoldier, IC_MEDKIT );
if (bSlot == NO_SLOT)
// Flugente: when bandaging, use first aid kits first (it's their only usage, medkits can be used for healing and surgery as well)
bSlot = FindFirstAidKit( pSoldier );
if ( bSlot == NO_SLOT )
{
// no medical kit!
return( AI_ACTION_NONE );
bSlot = FindMedKit( pSoldier );
if ( bSlot == NO_SLOT )
{
// no medical kit!
return( AI_ACTION_NONE );
}
}
if (pSoldier->bBleeding)