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

Comparing ray/src/cal/total.c (file contents):
Revision 1.2 by schorsch, Sun Jun 8 12:03:09 2003 UTC vs.
Revision 1.3 by schorsch, Mon Jul 21 22:30:17 2003 UTC

# Line 117 | Line 117 | char  *fname
117          }
118          ltotal = 0;
119          while (!feof(fp)) {
120 <                if (ltotal == 0)                        /* initialize */
120 >                if (ltotal == 0) {                      /* initialize */
121                          if (func == MULT)       /* special case */
122                                  for (n = 0; n < MAXCOL; n++)
123                                          result[n] = 0.0;
124                          else
125                                  for (n = 0; n < MAXCOL; n++)
126                                          result[n] = init_val[func];
127 +                }
128                  ncol = 0;
129                  for (nlin = 0; (count <= 0 || nlin < count) &&
130                                  (cp = fgets(buf, sizeof(buf), fp)) != NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines