mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Strip clothes: drop item to soldier's level if no place in inventory.
HandleTalkInit: - use SoldierToSoldierLineOfSightTest to check sight to person - increased talking range for militia to TACTICAL_RANGE When checking if radio set equipped for using with militia command feature, don't check for AP_RADIO as the game will deduct AP_TALK when giving order. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8942 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1110,21 +1110,16 @@ BOOLEAN CheckIfRadioIsEquipped( void )
|
||||
SOLDIERTYPE *pSoldier = NULL;
|
||||
INT8 bSlot = NO_SLOT;
|
||||
|
||||
// do we have a radio ?
|
||||
//pSoldier = GetSelectedAssignSoldier( FALSE ); //do not use
|
||||
|
||||
if ( GetSoldier( &pSoldier, gusSelectedSoldier ) )
|
||||
{
|
||||
// Flugente: active radio sets also count as radio
|
||||
if ( pSoldier->CanUseRadio() )
|
||||
if ( pSoldier->CanUseRadio(FALSE) )
|
||||
return TRUE;
|
||||
|
||||
//bSlot = FindObj( pSoldier, EXTENDEDEAR );
|
||||
bSlot = FindHearingAid(pSoldier);
|
||||
//ScreenMsg( FONT_WHITE, MSG_INTERFACE, L"Position: %d", bSlot );
|
||||
}
|
||||
|
||||
if (( bSlot == HEAD1POS ) || ( bSlot == HEAD2POS))
|
||||
if (bSlot == HEAD1POS || bSlot == HEAD2POS)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user