--- ray/src/rt/p_func.c 1994/01/12 16:46:50 2.3 +++ ray/src/rt/p_func.c 2003/03/05 16:16:53 2.6 @@ -1,15 +1,12 @@ -/* Copyright (c) 1991 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: p_func.c,v 2.6 2003/03/05 16:16:53 greg Exp $"; #endif - /* * p_func.c - routine for procedural patterns. - * - * 4/8/86 */ +#include "copyright.h" + #include "ray.h" #include "func.h" @@ -50,7 +47,7 @@ RAY *r; setfunc(m, r); errno = 0; bval = evalue(mf->ep[0]); - if (errno) { + if (errno == EDOM || errno == ERANGE) { objerror(m, WARNING, "compute error"); return(0); } @@ -74,7 +71,7 @@ RAY *r; setcolor(cval, evalue(mf->ep[0]), evalue(mf->ep[1]), evalue(mf->ep[2])); - if (errno) { + if (errno == EDOM || errno == ERANGE) { objerror(m, WARNING, "compute error"); return(0); }