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:
Sevenfm
2021-02-17 20:31:44 +00:00
parent 417fa661c6
commit f3d35c9401
3 changed files with 9 additions and 18 deletions
+2 -7
View File
@@ -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;
}