56 |
|
const void *cb2 |
57 |
|
) |
58 |
|
{ |
59 |
< |
register int c; |
59 |
> |
int c; |
60 |
|
|
61 |
|
if ((c = ((PACKHEAD*)cb1)->bi - ((PACKHEAD*)cb2)->bi)) /* sort on beam index first */ |
62 |
|
return(c); |
70 |
|
const void *cb2 |
71 |
|
) |
72 |
|
{ |
73 |
< |
register int c; |
73 |
> |
int c; |
74 |
|
|
75 |
|
if (!((PACKHEAD*)cb1)->nr) /* put orphans at the end, unsorted */ |
76 |
|
return(((PACKHEAD*)cb2)->nr); |
89 |
|
) |
90 |
|
{ |
91 |
|
PACKHEAD cb; |
92 |
< |
register PACKHEAD *p; |
92 |
> |
PACKHEAD *p; |
93 |
|
|
94 |
|
if (ncbeams <= 0) |
95 |
|
return(-1); |
104 |
|
|
105 |
|
static int |
106 |
|
getcbeam( /* get the specified beam, allocating as necessary */ |
107 |
< |
register int hd, |
107 |
> |
int hd, |
108 |
|
int bi |
109 |
|
) |
110 |
|
{ |
111 |
< |
register int n; |
111 |
> |
int n; |
112 |
|
/* first, look in sorted list */ |
113 |
|
if ((n = findcbeam(hd, bi)) >= 0) |
114 |
|
return(n); |
132 |
|
int adopt |
133 |
|
) |
134 |
|
{ |
135 |
< |
register int i; |
135 |
> |
int i; |
136 |
|
|
137 |
|
if (!(ncbeams += xcbeams)) |
138 |
|
return; |
149 |
|
} |
150 |
|
|
151 |
|
|
152 |
< |
extern void |
152 |
> |
void |
153 |
|
beam_init( /* clear beam list for new view(s) */ |
154 |
|
int fresh |
155 |
|
) |
156 |
|
{ |
157 |
< |
register int i; |
157 |
> |
int i; |
158 |
|
|
159 |
|
if (fresh) /* discard old beams? */ |
160 |
|
ncbeams = xcbeams = 0; |
165 |
|
} |
166 |
|
|
167 |
|
|
168 |
< |
extern int16 * |
168 |
> |
int16 * |
169 |
|
beam_view( /* add beam view (if advisable) */ |
170 |
|
VIEW *vn, |
171 |
|
int hr, |
175 |
|
int16 *slist; |
176 |
|
BEAMLIST blist; |
177 |
|
double eravg, d; |
178 |
< |
register HOLO *hp; |
179 |
< |
register int i, n; |
178 |
> |
HOLO *hp; |
179 |
> |
int i, n; |
180 |
|
/* compute beams for view */ |
181 |
|
slist = viewbeams(vn, hr, vr, &blist); |
182 |
|
if (*slist < 0) { |
216 |
|
} |
217 |
|
|
218 |
|
|
219 |
< |
extern int |
219 |
> |
int |
220 |
|
beam_sync( /* update beam list on server */ |
221 |
|
int all |
222 |
|
) |
240 |
|
} |
241 |
|
|
242 |
|
|
243 |
< |
extern void |
243 |
> |
void |
244 |
|
gridlines( /* run through holodeck section grid lines */ |
245 |
|
void (*f)(FVECT wp[2]) |
246 |
|
) |
247 |
|
{ |
248 |
< |
register int hd, w, i; |
248 |
> |
int hd, w, i; |
249 |
|
int g0, g1; |
250 |
|
FVECT wp[2], mov; |
251 |
|
double d; |