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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 1.4 by greg, Wed Jul 24 12:22:03 1991 UTC vs.
Revision 1.5 by greg, Wed Jul 24 16:48:22 1991 UTC

# Line 103 | Line 103 | char   *argv[];
103          init();
104          if (gargc+1 < argc)
105                  for (i = gargc+1; i < argc; i++) {
106 <                        if ((fp = fopen(argv[i], "r")) == NULL {
106 >                        if ((fp = fopen(argv[i], "r")) == NULL) {
107                                  sprintf(errmsg,
108                                  "cannot open scene file \"%s\"", argv[i]);
109                                  error(SYSTEM, errmsg);
# Line 286 | Line 286 | char   *nm;
286                                  thisillum.flags &= ~IL_COLDST;
287                                  break;
288                          case 'd':                       /* distribution */
289 <                                thisillum.flags |= IL_COLDST;
290 <                                thisillum.flags &= ~IL_COLAVG;
289 >                                thisillum.flags |= (IL_COLDST|IL_COLAVG);
290                                  break;
291                          case 'n':                       /* none */
292                                  thisillum.flags &= ~(IL_COLAVG|IL_COLDST);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines