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.3 by greg, Fri Sep 7 08:32:36 1990 UTC vs.
Revision 1.5 by greg, Thu Dec 13 11:39:07 1990 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18  
19   #include  "otypes.h"
20  
21 < #define  OSTSIZ         3037            /* object table size (a prime!) */
21 > #ifndef  OSTSIZ
22 > #define  OSTSIZ         12329           /* object table size (a prime!) */
23 > #endif
24  
25   static OBJECT  *ostable[OSTSIZ];        /* the object set table */
26  
# Line 183 | 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))
197 <                                                return(1);
198 <                                }
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