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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.53 by schorsch, Mon Jul 21 22:30:19 2003 UTC vs.
Revision 2.54 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 280 | Line 280 | FVECT  nrm;
280                  return;
281   dumbamb:                                        /* return global value */
282          copycolor(acol, ambval);
283 <        if (ambvwt <= 0 | navsum == 0)
283 >        if ((ambvwt <= 0) | (navsum == 0))
284                  return;
285          l = bright(ambval);                     /* average in computations */
286          if (l > FTINY) {
# Line 831 | Line 831 | ambsync()                      /* synchronize ambient file */
831                                  /* see if file has grown */
832          if ((flen = lseek(fileno(ambfp), (off_t)0L, 2)) < 0)
833                  goto seekerr;
834 <        if (n = flen - lastpos) {               /* file has grown */
834 >        if ( (n = flen - lastpos) ) {           /* file has grown */
835                  if (ambinp == NULL) {           /* use duplicate filedes */
836                          ambinp = fdopen(dup(fileno(ambfp)), "r");
837                          if (ambinp == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines