--- ray/src/gen/mkillum.c 2007/09/21 05:53:21 2.31 +++ ray/src/gen/mkillum.c 2007/12/13 07:03:37 2.33 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mkillum.c,v 2.31 2007/09/21 05:53:21 greg Exp $"; +static const char RCSid[] = "$Id: mkillum.c,v 2.33 2007/12/13 07:03:37 greg Exp $"; #endif /* * Make illum sources for optimizing rendering process @@ -8,9 +8,7 @@ static const char RCSid[] = "$Id: mkillum.c,v 2.31 200 #include #include -#include "platform.h" #include "mkillum.h" -#include "random.h" /* default parameters */ #define SAMPDENS 48 /* points per projected steradian */ @@ -308,7 +306,7 @@ xoptions( /* process options in string s */ } if (!*++cp || isspace(*cp)) continue; - if (isintd(++cp, " \t\n\r")) { + if (isintd(cp, " \t\n\r")) { thisillum.sampdens = atoi(cp); } else { atos(buf, sizeof(buf), cp); @@ -385,7 +383,7 @@ xoptions( /* process options in string s */ break; case 'z': case 'Z': - thisillum.udir = negax ? UDxneg : UDxpos; + thisillum.udir = negax ? UDzneg : UDzpos; break; default: thisillum.udir = UDunknown;