--- ray/src/util/ranimove2.c 2004/03/26 21:36:20 3.6 +++ ray/src/util/ranimove2.c 2005/04/19 01:15:07 3.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ranimove2.c,v 3.6 2004/03/26 21:36:20 schorsch Exp $"; +static const char RCSid[] = "$Id: ranimove2.c,v 3.8 2005/04/19 01:15:07 greg Exp $"; #endif /* * ranimove2.c @@ -233,12 +233,13 @@ est_consp( /* estimate error conspicuity & update */ /* worth the bother? */ if (eest <= .01) return; - /* sum into map */ + /* put into map */ for ( ; y0 < y1; y0++) { float *em0 = cerrmap + fndx(x0, y0); register float *emp = em0 + (x1-x0); while (emp-- > em0) - *emp += eest; + if (eest > *emp) + *emp = eest; } cerrzero = 0; } @@ -395,7 +396,7 @@ ray_refine( /* refine the given pixel by tracing a r return(-1); if (nprocs > 1) { int rval; - rayorigin(&ir, NULL, PRIMARY, 1.0); + rayorigin(&ir, PRIMARY, NULL, NULL); ir.rno = n; rval = ray_pqueue(&ir); if (!rval)