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.4 by greg, Wed Sep 19 08:26:02 1990 UTC vs.
Revision 1.5 by greg, Thu Dec 13 11:39:07 1990 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines