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

Comparing ray/src/gen/loadEPW.c (file contents):
Revision 2.6 by greg, Wed Jul 30 22:15:53 2025 UTC vs.
Revision 2.7 by greg, Fri Aug 22 00:08:45 2025 UTC

# Line 512 | Line 512 | EPWread(EPWheader *epw, EPWrecord *rp)
512          }
513          if (!cp++) goto badformat;
514          if (*cp != ',') {
515 <                rp->diffillum = atof(cp);
516 <                if (rp->diffillum >= 999900.f)
517 <                        rp->diffillum = EPWrecInit.diffillum;
515 >                rp->dirillum = atof(cp);
516 >                if (rp->dirillum >= 999900.f)
517 >                        rp->dirillum = EPWrecInit.dirillum;
518                  cp = strchr(cp, ',');
519          }
520          if (!cp++) goto badformat;
521          if (*cp != ',') {
522 <                rp->dirillum = atof(cp);
523 <                if (rp->dirillum >= 999900.f)
524 <                        rp->dirillum = EPWrecInit.dirillum;
522 >                rp->diffillum = atof(cp);
523 >                if (rp->diffillum >= 999900.f)
524 >                        rp->diffillum = EPWrecInit.diffillum;
525                  cp = strchr(cp, ',');
526          }
527          if (!cp++) goto badformat;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines