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.7 by greg, Thu Jul 16 13:37:12 1992 UTC vs.
Revision 2.8 by greg, Thu Jul 16 14:03:27 1992 UTC

# Line 99 | Line 99 | char  *afile;
99   initambfile(creat)              /* initialize ambient file */
100   int  creat;
101   {
102 <        extern char  *progname, *octname;
102 >        extern char  *progname, *octname, VersionID[];
103  
104          setbuf(ambfp, bmalloc(BUFSIZ));
105          if (creat) {                    /* new file */
# Line 110 | Line 110 | int  creat;
110                  fprintf(ambfp, "-ad %d -as %d -ar %d %s\n",
111                                  ambdiv, ambssamp, ambres,
112                                  octname==NULL ? "" : octname);
113 +                fprintf(ambfp, "SOFTWARE= %s\n", VersionID);
114                  fputformat(AMBFMT, ambfp);
115                  putc('\n', ambfp);
116                  putambmagic(ambfp);
# Line 117 | Line 118 | int  creat;
118          } else if (checkheader(ambfp, AMBFMT, NULL) < 0
119                          || !hasambmagic(ambfp)) {
120                  sprintf(errmsg, "\"%s\" is not an ambient file", afname);
121 <                error(USER, afname);
121 >                error(USER, errmsg);
122          }
123          ambheadlen = ftell(ambfp);
124   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines