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.121 by greg, Mon Jan 29 19:24:00 2024 UTC vs.
Revision 2.122 by greg, Wed Jan 31 04:03:03 2024 UTC

# Line 662 | Line 662 | retry:
662                  putambmagic(ambfp);
663          } else if (getheader(ambfp, amb_headline, NULL) < 0 || !hasambmagic(ambfp)) {
664   #ifndef  F_SETLKW
665 <                static int      ntries = 0;
666 <                if (++ntries < 4 && ftell(ambfp) == 0) {
665 >                static int      ntries = 3;
666 >                if (--ntries > 0 && ftell(ambfp) == 0) {
667 >                        clearerr(ambfp);
668                          sleep(2);
669                          goto retry;
670                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines