ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/srcobstr.c
(Generate patch)

Comparing ray/src/rt/srcobstr.c (file contents):
Revision 2.3 by greg, Fri Jan 9 05:37:12 2004 UTC vs.
Revision 2.5 by greg, Tue Jun 22 13:40:54 2004 UTC

# Line 197 | Line 197 | srcobstructp(register RAY *r)
197                  ondx += (int)(2*SHADCACHE*srcp->obscache->p.d.e2 *
198                                  (r->rorg[ax2] + t*srcp->sloc[ax2] -
199                                          srcp->obscache->p.d.o[ax2]));
200 <                if (ondx < 0 | ondx >= 4*SHADCACHE*SHADCACHE)
200 >                if ((ondx < 0) | (ondx >= 4*SHADCACHE*SHADCACHE))
201                          return(&noobs); /* could happen if ray is outside */
202          } else if (srcp->sflags & SFLAT) {
203                  FVECT   sd;
# Line 281 | Line 281 | srcblocker(register RAY *r)
281          m = findmaterial(r->ro);
282          if (m == NULL)
283                  return;                 /* no material?! */
284 <        if (!(ofun[m->otype].flags & T_OPAQUE))
284 >        if (!isopaque(m->otype))
285                  return;                 /* material not a reliable blocker */
286          *srcobstructp(r) = r->robj;     /* else record obstructor */
287   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines