src/game/Tactical/Items.cc
FOR_EACH_MERC(i)
	{
		SOLDIERTYPE* const tgt = *i;
		if (tgt->ubMiscSoldierFlags &  SOLDIER_MISC_XRAYED &&
			tgt->xrayed_by == pSoldier)
		{
			tgt->ubMiscSoldierFlags &= ~SOLDIER_MISC_XRAYED;
			tgt->xrayed_by           = NULL;
		}
	}
// scan through all mercs and turn off xrayed flag for anyone
// xrayed by this guy
scan through all mercs and turn off xrayed flag for anyone
xrayed by this guy
scan through all mercs and turn off xrayed flag for anyone xrayed by this guy
FOR_EACH_MERC(i)
	{
		SOLDIERTYPE* const tgt = *i;
		if (tgt->ubMiscSoldierFlags &  SOLDIER_MISC_XRAYED &&
			tgt->xrayed_by == pSoldier)
		{
			tgt->ubMiscSoldierFlags &= ~SOLDIER_MISC_XRAYED;
			tgt->xrayed_by           = NULL;
		}
	}
FOR_EACH_MERC ( i ) { SOLDIERTYPE * const tgt = * i ; if ( tgt -> ubMiscSoldierFlags & SOLDIER_MISC_XRAYED && tgt -> xrayed_by == pSoldier ) { tgt -> ubMiscSoldierFlags &= ~ SOLDIER_MISC_XRAYED ; tgt -> xrayed_by = NULL ; } }
scan through all mercs and turn off xrayed flag for anyone
xrayed by this guy
scan through all mercs and turn off xrayed flag for anyone xrayed by this guy