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

Comparing ray/src/util/rad.c (file contents):
Revision 2.39 by greg, Thu Mar 24 12:28:22 1994 UTC vs.
Revision 2.40 by greg, Thu Apr 21 12:22:44 1994 UTC

# Line 701 | Line 701 | oconv()                                /* run oconv and mkillum if necessary */
701                          exit(1);
702                  }
703                  octreedate = time((time_t *)NULL);
704 +                if (octreedate < scenedate)     /* in case clock is off */
705 +                        octreedate = scenedate;
706          }
707          if (oct1name == vval(OCTREE))           /* no mkillum? */
708                  oct1date = octreedate > matdate ? octreedate : matdate;
# Line 727 | Line 729 | oconv()                                /* run oconv and mkillum if necessary */
729                          exit(1);
730                  }
731                  oct0date = time((time_t *)NULL);
732 +                if (oct0date < octreedate)      /* in case clock is off */
733 +                        oct0date = octreedate;
734 +                if (oct0date < illumdate)       /* ditto */
735 +                        oct0date = illumdate;
736          }
737          mkillumopts(mkopts);                    /* build mkillum command */
738          mktemp(illumtmp);
# Line 755 | Line 761 | oconv()                                /* run oconv and mkillum if necessary */
761                  exit(1);
762          }
763          oct1date = time((time_t *)NULL);
764 +        if (oct1date < oct0date)        /* in case clock is off */
765 +                oct1date = oct0date;
766          rmfile(illumtmp);
767   }
768  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines