--- ray/src/rt/glass.c 2003/03/03 00:10:51 2.12 +++ ray/src/rt/glass.c 2003/03/12 04:59:05 2.13 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: glass.c,v 2.12 2003/03/03 00:10:51 greg Exp $"; +static const char RCSid[] = "$Id: glass.c,v 2.13 2003/03/12 04:59:05 greg Exp $"; #endif /* * glass.c - simpler shading function for thin glass surfaces. @@ -73,9 +73,9 @@ register RAY *r; mirtest = transtest = 0; mirdist = transdist = r->rot; /* perturb normal */ - if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY) + if (hastexture = (DOT(r->pert,r->pert) > FTINY*FTINY)) { pdot = raynormal(pnorm, r); - else { + } else { VCOPY(pnorm, r->ron); pdot = r->rod; }