src/game/Tactical/Items.cc
FOR_EACH_MERC(i)
	{
		SOLDIERTYPE* const tgt = *i;
		if (tgt->bTeam != pSoldier->bTeam &&
			PythSpacesAway(pSoldier->sGridNo, tgt->sGridNo) < XRAY_RANGE)
		{
			tgt->ubMiscSoldierFlags |= SOLDIER_MISC_XRAYED;
			tgt->xrayed_by           = pSoldier;
		}
	}
// now turn on xray for anyone within range
now turn on xray for anyone within range
now turn on xray for anyone within range
FOR_EACH_MERC(i)
	{
		SOLDIERTYPE* const tgt = *i;
		if (tgt->bTeam != pSoldier->bTeam &&
			PythSpacesAway(pSoldier->sGridNo, tgt->sGridNo) < XRAY_RANGE)
		{
			tgt->ubMiscSoldierFlags |= SOLDIER_MISC_XRAYED;
			tgt->xrayed_by           = pSoldier;
		}
	}
FOR_EACH_MERC ( i ) { SOLDIERTYPE * const tgt = * i ; if ( tgt -> bTeam != pSoldier -> bTeam && PythSpacesAway ( pSoldier -> sGridNo , tgt -> sGridNo ) < XRAY_RANGE ) { tgt -> ubMiscSoldierFlags |= SOLDIER_MISC_XRAYED ; tgt -> xrayed_by = pSoldier ; } }
now turn on xray for anyone within range
now turn on xray for anyone within range