162 |
|
|
163 |
|
d = normalize(direc); |
164 |
|
if (d == 0.0) { /* zero ==> flush */ |
165 |
< |
if (--nextflush <= 0 || !vcount) { |
165 |
> |
if ((--nextflush <= 0) | !vcount) { |
166 |
|
if (ray_pnprocs > 1 && ray_fifo_flush() < 0) |
167 |
|
error(USER, "child(ren) died"); |
168 |
|
bogusray(); |
314 |
|
static void |
315 |
|
bogusray(void) /* print out empty record */ |
316 |
|
{ |
317 |
< |
thisray.rorg[0] = thisray.rorg[1] = thisray.rorg[2] = |
318 |
< |
thisray.rdir[0] = thisray.rdir[1] = thisray.rdir[2] = 0.0; |
319 |
< |
thisray.rmax = 0.0; |
317 |
> |
memset(&thisray, 0, sizeof(thisray)); |
318 |
|
rayorigin(&thisray, PRIMARY, NULL, NULL); |
319 |
|
printvals(&thisray); |
320 |
|
} |