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

Comparing ray/src/rt/source.c (file contents):
Revision 2.38 by greg, Wed Dec 31 01:50:02 2003 UTC vs.
Revision 2.39 by greg, Wed Dec 31 02:03:08 2003 UTC

# Line 382 | Line 382 | srcobstructp(register RAY *r)
382                  ondx += (int)(2*SHADCACHE*srcp->obscache->p.d.e2 *
383                                  (r->rorg[ax2] + t*srcp->sloc[ax2] -
384                                          srcp->obscache->p.d.o[ax2]));
385 +                if (ondx < 0 | ondx >= 4*SHADCACHE*SHADCACHE)
386 +                        return &nobs;   /* could happen if ray is outside */
387          } else if (srcp->sflags & SFLAT) {
388                  FVECT   sd;
389                  RREAL   sd0m, sd1m;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines