167 |
|
getvec(direc, inform, fp) == 0) { |
168 |
|
|
169 |
|
d = normalize(direc); |
170 |
< |
if (d == 0.0) { /* zero ==> flush */ |
170 |
> |
if (d == 0.0) { /* bogus ray */ |
171 |
> |
bogusray(); |
172 |
> |
/* flush request? */ |
173 |
|
if (something2flush) { |
174 |
|
if (ray_pnprocs > 1 && ray_fifo_flush() < 0) |
175 |
|
error(USER, "child(ren) died"); |
174 |
– |
bogusray(); |
176 |
|
fflush(stdout); |
176 |
– |
something2flush = 0; |
177 |
|
nextflush = (!vresolu | (hresolu <= 1)) * hresolu; |
178 |
< |
} else |
179 |
< |
bogusray(); |
178 |
> |
something2flush = 0; |
179 |
> |
} |
180 |
|
} else { /* compute and print */ |
181 |
|
rtcompute(orig, direc, lim_dist ? d : 0.0); |
182 |
|
/* flush if time */ |