ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/srcsamp.c
(Generate patch)

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.18 by greg, Wed Dec 28 18:39:36 2011 UTC vs.
Revision 2.20 by greg, Tue Jun 11 17:00:59 2019 UTC

# Line 40 | Line 40 | nextssamp(                     /* compute sample for source, rtn. distan
40   {
41          int  cent[3], size[3], parr[2];
42          SRCREC  *srcp;
43 <        FVECT  vpos;
43 >        double  vpos[3];
44          double  d;
45          int  i;
46   nextsample:
# Line 84 | Line 84 | nextsample:
84  
85          VSUM(vpos, vpos, cent, 1.0/MAXSPART);
86                                          /* avoid circular aiming failures */
87 <        if ((srcp->sflags & SCIR) && (si->np > 1 || dstrsrc > 0.7)) {
87 >        if ((srcp->sflags & SCIR) && (si->np > 1) | (dstrsrc > 0.7)) {
88                  FVECT   trim;
89                  if (srcp->sflags & (SFLAT|SDISTANT)) {
90                          d = 1.12837917;         /* correct setflatss() */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines