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

Comparing ray/src/rt/lookamb.c (file contents):
Revision 2.14 by greg, Sun May 11 19:51:39 2014 UTC vs.
Revision 2.16 by greg, Sun Aug 2 01:32:15 2015 UTC

# Line 19 | Line 19 | int  reverse = 0;
19  
20   AMBVAL  av;
21  
22 < #ifdef NEWAMB
22 > #ifndef OLDAMB
23  
24  
25   static void
# Line 90 | Line 90 | writamb(                       /* write binary ambient values to stdout */
90                  av.udir = encodedir(norm);
91                  if (!dataonly)
92                          fscanf(fp, "%*s");
93 <                if (fscanf(fp, "%d %f %f %f", &av.lvl, &av.weight,
93 >                if (fscanf(fp, "%hd %f %f %f", &av.lvl, &av.weight,
94                                  &av.rad[0], &av.rad[1]) != 4)
95                          return;
96                  if (!dataonly)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines