| 7 |
|
|
| 8 |
|
#include "rholo.h" |
| 9 |
|
#include "rhdisp.h" |
| 10 |
– |
#include "view.h" |
| 10 |
|
|
| 11 |
|
struct cellist { |
| 12 |
|
GCOORD *cl; |
| 52 |
|
(ip[1][0]-ip[3][0])*(ip[2][1]-ip[3][1]); |
| 53 |
|
af *= af >= 0 ? 0.5 : -0.5; |
| 54 |
|
getback: |
| 55 |
< |
copystruct(&vrev, vp); /* compute reverse view */ |
| 55 |
> |
vrev = *vp; /* compute reverse view */ |
| 56 |
|
for (i = 0; i < 3; i++) { |
| 57 |
|
vrev.vdir[i] = -vp->vdir[i]; |
| 58 |
|
vrev.vup[i] = -vp->vup[i]; |
| 238 |
|
GCOORD *gcp; |
| 239 |
|
register struct cellist *cl; |
| 240 |
|
{ |
| 241 |
< |
copystruct(cl->cl+cl->n, gcp); |
| 241 |
> |
*(cl->cl+cl->n) = *gcp; |
| 242 |
|
cl->n++; |
| 243 |
|
return(1); |
| 244 |
|
} |
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
|
| 306 |
< |
gridlines(f) /* run through holodeck section grid lines */ |
| 307 |
< |
int (*f)(); |
| 306 |
> |
extern void |
| 307 |
> |
gridlines( /* run through holodeck section grid lines */ |
| 308 |
> |
void (*f)(FVECT wp[2]) |
| 309 |
> |
) |
| 310 |
|
{ |
| 311 |
|
register int hd, w, i; |
| 312 |
|
int g0, g1; |