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.48 by greg, Tue Dec 12 13:30:14 1995 UTC vs.
Revision 2.50 by greg, Fri Jan 5 14:43:03 1996 UTC

# Line 535 | Line 535 | ambval()                               /* compute ambient value */
535   {
536          if (vdef(EXPOSURE)) {
537                  if (vval(EXPOSURE)[0] == '+' || vval(EXPOSURE)[0] == '-')
538 <                        return(.5/pow(2.,atof(vval(EXPOSURE))));
539 <                return(.5/atof(vval(EXPOSURE)));
538 >                        return(.5/pow(2.,vflt(EXPOSURE)));
539 >                return(.5/vflt(EXPOSURE));
540          }
541          if (vlet(ZONE) == 'E')
542                  return(10.);
# Line 796 | Line 796 | char   *ro;
796                  return;
797          if (vdef(OPTFILE)) {
798                  for (cp = ro; cp[1]; cp++)
799 <                        if (isspace(cp[1]) && cp[2] == '-' && isalpha(cp[3]))
799 >                        if (isspace(cp[1]) && (cp[2] == '@' ||
800 >                                        (cp[2] == '-' && isalpha(cp[3]))))
801                                  *cp = '\n';
802                          else
803                                  *cp = cp[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines