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

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.3 by greg, Mon Jun 11 05:07:55 2012 UTC vs.
Revision 2.6 by greg, Thu Jun 21 17:14:32 2012 UTC

# Line 8 | Line 8 | static const char RCSid[] = "$Id$";
8  
9   #include "rcontrib.h"
10   #include "resolu.h"
11 #include "platform.h"
11  
12   /* Close output stream and free record */
13   static void
# Line 672 | Line 671 | recover_output()
671          nvals = lastout * outvsiz;
672          lu_doall(&ofiletab, myseeko, &nvals);
673                                                  /* skip repeated input */
674 +        lastout *= accumulate;
675          for (nvals = 0; nvals < lastout; nvals++) {
676                  FVECT   vdummy;
677                  if (getvec(vdummy) < 0 || getvec(vdummy) < 0)
678                          error(USER, "unexpected EOF on input");
679          }
680 <        lastray = lastdone = lastout * accumulate;
680 >        lastray = lastdone = (RNUMBER)lastout;
681          if (raysleft)
682                  raysleft -= lastray;
683   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines