34 |
|
p->ra[i].r[1][0] = sl[2] * 256.; |
35 |
|
p->ra[i].r[1][1] = sl[3] * 256.; |
36 |
|
d = hdray(ro, rd, hdlist[p->hd], gc, p->ra[i].r); |
37 |
+ |
if (!vdef(OBSTRUCTIONS)) |
38 |
+ |
d *= frandom(); /* random offset */ |
39 |
|
if (p->offset != NULL) { |
40 |
< |
VSUM(ro, ro, rd, d); /* exterior only */ |
40 |
> |
VSUM(ro, ro, rd, d); /* advance ray */ |
41 |
|
p->offset[i] = d; |
42 |
|
} |
43 |
|
VCOPY(rod, ro); |
77 |
|
wputs("closing rtrace process...\n"); |
78 |
|
/* flush beam queue */ |
79 |
|
done_packets(flush_queue()); |
80 |
+ |
/* sync holodeck */ |
81 |
+ |
hdsync(NULL, 1); |
82 |
|
/* close rtrace */ |
83 |
|
if ((status = end_rtrace())) |
84 |
|
error(WARNING, "bad exit status from rtrace"); |