}
boolean rightBay = true;
if (entity.usesWeaponBays()
&& !(entity instanceof FighterSquadron)) {
rightBay = oldmount.ammoInBay(entity
.getEquipmentNum(mountedAmmo));
}
if (mountedAmmo.isAmmoUsable() && same && rightBay
&& (atype.getAmmoType() == wtype.getAmmoType())