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

Comparing ray/src/rt/rc3.c (file contents):
Revision 2.7 by greg, Tue Jun 12 22:40:30 2012 UTC vs.
Revision 2.8 by greg, Tue Jun 12 22:46:45 2012 UTC

# Line 423 | Line 423 | parental_loop()
423          int             qlimit = (accumulate == 1) ? 1 : MAXIQ-1;
424          int             ninq = 0;
425          FVECT           orgdir[2*MAXIQ];
426        double          d;
426          int             i, n;
427                                          /* load rays from stdin & process */
428   #ifdef getc_unlocked
429          flockfile(stdin);               /* avoid lock/unlock overhead */
430   #endif
431          while (getvec(orgdir[2*ninq]) == 0 && getvec(orgdir[2*ninq+1]) == 0) {
432 <                d = normalize(orgdir[2*ninq+1]);
433 <                if (d == 0.0) {                         /* asking for flush? */
432 >                if (orgdir[2*ninq+1][0] == 0.0 &&       /* asking for flush? */
433 >                                (orgdir[2*ninq+1][1] == 0.0) &
434 >                                (orgdir[2*ninq+1][2] == 0.0)) {
435                          if (accumulate != 1) {
436                                  if (!ignore_warning_given++)
437                                          error(WARNING,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines