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

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.9 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.10 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 114 | Line 114 | unsigned char  *pt;            /* partition array */
114                                          /* check this partition */
115          p = spart(pt, pp[0]);
116          pp[0]++;
117 <        if (p == S0)                    /* leaf partition */
117 >        if (p == S0) {                  /* leaf partition */
118                  if (pp[1]) {
119                          pp[1]--;
120                          return(0);      /* not there yet */
121                  } else
122                          return(1);      /* we've arrived */
123 +        }
124                                  /* else check lower */
125          sz[p] >>= 1;
126          ct[p] -= sz[p];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines