--- ray/src/rt/m_mist.c 1996/04/17 14:10:23 2.6 +++ ray/src/rt/m_mist.c 1996/07/16 09:21:10 2.8 @@ -44,6 +44,10 @@ static char SCCSid[] = "$SunId$ LBL"; * scattering. A value approaching 1 indicates strong forward scattering. */ +#ifndef MAXSLIST +#define MAXSLIST 32 /* maximum sources to check */ +#endif + #define RELAYDELIM '>' /* relay delimiter character */ extern COLOR cextinction; /* global coefficient of extinction */ @@ -119,7 +123,7 @@ register RAY *r; double re, ge, be; register int i, j; /* check arguments */ - if (m->oargs.nfargs > 5) + if (m->oargs.nfargs > 7) objerror(m, USER, "bad arguments"); /* get source indices */ if (m->oargs.nsargs > 0 && (myslist = (int *)m->os) == NULL) {