# | Line 197 | Line 197 | void distribPhotonContrib (PhotonMap* pm, unsigned num | |
---|---|---|
197 | if (!nsources) | |
198 | error(USER, "no light sources in distribPhotonContrib"); | |
199 | ||
200 | – | if (nsources > MAXMODLIST) |
201 | – | error(USER, "too many light sources in distribPhotonContrib"); |
202 | – | |
200 | /* Allocate photon flux per light source; this differs for every | |
201 | * source as all sources contribute the same number of distributed | |
202 | * photons (srcDistribTarget), hence the number of photons emitted per |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |