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