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; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
< |
int2 * |
150 |
> |
int16 * |
151 |
|
beam_view(vn, hr, vr) /* add beam view (if advisable) */ |
152 |
|
VIEW *vn; |
153 |
|
int hr, vr; |
154 |
|
{ |
155 |
< |
int2 *slist; |
155 |
> |
int16 *slist; |
156 |
|
BEAMLIST blist; |
157 |
|
double eravg, d; |
158 |
|
register HOLO *hp; |