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

Comparing ray/src/common/objset.c (file contents):
Revision 1.6 by greg, Fri Dec 14 10:06:33 1990 UTC vs.
Revision 1.7 by greg, Fri May 10 10:37:14 1991 UTC

# Line 189 | Line 189 | int  orig, nobjs;
189   {
190          int  n;
191          register OBJECT  *os;
192 <        register OBJECT  i;
192 >        register OBJECT  i, s;
193  
194          for (n = 0; n < OSTSIZ; n++) {
195                  if ((os = ostable[n]) == NULL)
196                          continue;
197                  while ((i = *os++) > 0)
198                          while (i--) {
199 <                                if (*os >= orig && *os < orig+nobjs &&
200 <                                                !issurface(objptr(*os)->otype))
199 >                                s = *os;
200 >                                if (s >= orig && s < orig+nobjs &&
201 >                                                !issurface(objptr(s)->otype))
202                                          return(1);
203                                  os++;
204                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines