# | Line 41 | Line 41 | static int maxcntr = 0; /* size of contribution arra | |
---|---|---|
41 | ||
42 | marksources() /* find and mark source objects */ | |
43 | { | |
44 | + | int foundsource = 0; |
45 | int i; | |
46 | register OBJREC *o, *m; | |
47 | register int ns; | |
# | Line 93 | Line 94 | marksources() /* find and mark source objects */ | |
94 | source[ns].sflags |= SSKIP; | |
95 | } | |
96 | } | |
97 | + | if (!(source[ns].sflags & SSKIP)) |
98 | + | foundsource++; |
99 | } | |
100 | < | if (nsources <= 0) { |
100 | > | if (!foundsource) { |
101 | error(WARNING, "no light sources found"); | |
102 | return; | |
103 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |