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;
		}
	}
// first, scan through all mercs and turn off xrayed flag for anyone
// previously xrayed by this guy
first, scan through all mercs and turn off xrayed flag for anyone
previously xrayed by this guy
first scan through all mercs and turn off xrayed flag for anyone previously 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 ; } }
first, scan through all mercs and turn off xrayed flag for anyone
previously xrayed by this guy
first scan through all mercs and turn off xrayed flag for anyone previously xrayed by this guy