Index: trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
===================================================================
--- trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c	(revision 39225)
+++ trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c	(revision 39262)
@@ -85,5 +85,5 @@
     N1[Nstars] = i;
     Nstars ++;
-    input[0].found_t[i] = -1;
+    input[0].found_t[i] = FALSE;
   }
   if (Nstars < 1) {
@@ -180,4 +180,6 @@
     off_t N = N1[i];
 
+    input[0].found_t[N] = TRUE;
+
     /* make sure there is space for next Nmeasure entries */
     if (Nmeas + input[0].average[N].Nmeasure >= NMEAS) {
@@ -209,5 +211,4 @@
       Nreplace = replace_tycho (&output[0].average[n], output[0].measure, next_meas, &input[0].average[N], &input[0].measure[Minp]);
       if (Nreplace == 6) {
-	input[0].found_t[N] = Nmeas;
 	output[0].found_t[n] = Nmeas;
 	i++;
@@ -224,5 +225,4 @@
 	// XXX this does not support lensing, starpar, or galphot measurements
 	if (replace_match (&output[0].average[n], output[0].measure, next_meas, &input[0].average[N], &input[0].measure[offset])) {
-	  input[0].found_t[N] = output[0].average[n].measureOffset;  
 	  continue;
 	}
@@ -274,5 +274,4 @@
         }
       }
-      input[0].found_t[N] = Nmeas;
       output[0].average[n].Nmeasure ++;
       Nmeas ++;
@@ -394,9 +393,11 @@
     }
 
-    if (input[0].found_t[N] >= 0) continue;
+    if (input[0].found_t[N]) continue;
 
     // if we are using MATCHED_TABLES, we are going to leave the edge cases in their
     // source catalog, even if they have leaked beyond the edge
     if (!MATCHED_TABLES && !IN_REGION (input[0].average[N].R, input[0].average[N].D)) continue;
+
+    input[0].found_t[N] = TRUE;
 
     // XXX should we accept the input measurements for these fields?
@@ -450,5 +451,4 @@
 
       /* we set next[Nmeas] to -1 here, and update correctly below */
-      input[0].found_t[N] = Nmeas;
       next_meas[Nmeas] = -1;
       Nmeas ++;
@@ -559,13 +559,4 @@
   }
 
-  /* note stars which have been found in this catalog */
-  for (i = 0; i < input[0].Naverage; i++) {
-    if (input[0].found_t[i] > -1) {
-      input[0].found_t[i] = -2;
-    } else {
-      input[0].found_t[i] = -3;
-    }
-  }
-
   /* check if the catalog has changed?  if no change, no need to write */
   output[0].objID    = objID; // new max value, save on catalog close
