# | Line 561 | Line 561 | srcscatter( /* compute source scattering into ray */ | |
---|---|---|
561 | RAY *r | |
562 | ) | |
563 | { | |
564 | < | int oldsampndx; |
564 | > | unsigned long oldsampndx; |
565 | int nsamps; | |
566 | RAY sr; | |
567 | SRCINDEX si; | |
# | Line 583 | Line 583 | srcscatter( /* compute source scattering into ray */ | |
583 | nsamps = MAXSSAMP; | |
584 | #endif | |
585 | oldsampndx = samplendx; | |
586 | < | samplendx = random()&0x7fff; /* randomize */ |
586 | > | samplendx = random()&0x7ffff; /* randomize */ |
587 | for (i = volumePhotonMapping ? 1 : r->slights[0]; i > 0; i--) { | |
588 | /* for each source OR once if volume photon map enabled */ | |
589 | for (j = 0; j < nsamps; j++) { /* for each sample position */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |