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

Comparing ray/src/hd/rhdisp2.c (file contents):
Revision 3.35 by greg, Fri Jun 20 00:25:49 2003 UTC vs.
Revision 3.36 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 103 | Line 103 | int    bi;
103                  if (cbeam[n].bi == bi && cbeam[n].hd == hd)
104                          return(n);
105                                  /* check legality */
106 <        if (hd < 0 | hd >= HDMAX || hdlist[hd] == NULL)
106 >        if ((hd < 0) | (hd >= HDMAX) || hdlist[hd] == NULL)
107                  error(INTERNAL, "illegal holodeck number in getcbeam");
108 <        if (bi < 1 | bi > nbeams(hdlist[hd]))
108 >        if ((bi < 1) | (bi > nbeams(hdlist[hd])))
109                  error(INTERNAL, "illegal beam index in getcbeam");
110          n = newcbeam();         /* allocate and assign */
111          cbeam[n].hd = hd; cbeam[n].bi = bi; cbeam[n].nr = cbeam[n].nc = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines