src/game/Tactical/Items.cc
bool ValidAmmoType( UINT16 usItem, UINT16 usAmmoType )
{
	if (GCM->getItem(usItem)->getItemClass() == IC_GUN && GCM->getItem(usAmmoType)->getItemClass() == IC_AMMO)
	{
		return GCM->getWeapon(usItem)->matches(GCM->getItem(usAmmoType)->asAmmo()->calibre);
	}
	return false;
}
//Determines if it is possible to equip this weapon with this ammo.
Determines if it is possible to equip this weapon with this ammo.
Determines if it is possible to equip this weapon with this ammo .
bool ValidAmmoType( UINT16 usItem, UINT16 usAmmoType )
{
	if (GCM->getItem(usItem)->getItemClass() == IC_GUN && GCM->getItem(usAmmoType)->getItemClass() == IC_AMMO)
	{
		return GCM->getWeapon(usItem)->matches(GCM->getItem(usAmmoType)->asAmmo()->calibre);
	}
	return false;
}
bool ValidAmmoType ( UINT16 usItem , UINT16 usAmmoType ) { if ( GCM -> getItem ( usItem ) -> getItemClass ( ) == IC_GUN && GCM -> getItem ( usAmmoType ) -> getItemClass ( ) == IC_AMMO ) { return GCM -> getWeapon ( usItem ) -> matches ( GCM -> getItem ( usAmmoType ) -> asAmmo ( ) -> calibre ) ; } return false ; }
Determines if it is possible to equip this weapon with this ammo.
Determines if it is possible to equip this weapon with this ammo .