--- ray/src/rt/mx_func.c 1998/08/10 18:35:14 2.4 +++ ray/src/rt/mx_func.c 2003/03/05 16:16:53 2.7 @@ -1,15 +1,12 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: mx_func.c,v 2.7 2003/03/05 16:16:53 greg Exp $"; #endif - /* * mx_func.c - routine for mixture functions. - * - * 11/2/88 */ +#include "copyright.h" + #include "ray.h" #include "func.h" @@ -54,7 +51,7 @@ RAY *r; setfunc(m, r); errno = 0; coef = evalue(mf->ep[0]); - if (errno) { + if (errno == EDOM || errno == ERANGE) { objerror(m, WARNING, "compute error"); return(0); }