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

Comparing ray/src/hd/holofile.c (file contents):
Revision 3.33 by gwlarson, Sat Jan 9 09:16:14 1999 UTC vs.
Revision 3.34 by gwlarson, Tue Jan 19 10:08:34 1999 UTC

# Line 554 | Line 554 | int    i;
554                  }
555          biglob(hp)->nrd -= bi->nrd;             /* tell fragment it's free */
556          bi->nrd = 0;
557 <        bi->fo = 0;
557 >        bi->fo = 0L;
558          return(1);
559   }
560  
# Line 644 | Line 644 | register int   i;
644                  hp->bi[i].fo = nfo;
645          } else
646                  hp->bi[i].fo = 0L;
647 <        biglob(hp)->nrd += hp->bi[i].nrd = nrays;
647 >        biglob(hp)->nrd += nrays - hp->bi[i].nrd;
648 >        hp->bi[i].nrd = nrays;
649          markdirty(hp, i);               /* section directory now out of date */
650          return(1);
651   }
# Line 719 | Line 720 | register int   i;
720          if (hp->bi[i].nrd) {
721                  if (hdfragflags&FF_KILL)
722                          hdfreefrag(hp, i);
723 +                biglob(hp)->nrd -= hp->bi[i].nrd;
724                  hp->bi[i].nrd = 0;      /* make sure it's gone */
725                  hp->bi[i].fo = 0L;
726          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines