| 423 |
|
int qlimit = (accumulate == 1) ? 1 : MAXIQ-1; |
| 424 |
|
int ninq = 0; |
| 425 |
|
FVECT orgdir[2*MAXIQ]; |
| 426 |
– |
double d; |
| 426 |
|
int i, n; |
| 427 |
|
/* load rays from stdin & process */ |
| 428 |
|
#ifdef getc_unlocked |
| 429 |
|
flockfile(stdin); /* avoid lock/unlock overhead */ |
| 430 |
|
#endif |
| 431 |
|
while (getvec(orgdir[2*ninq]) == 0 && getvec(orgdir[2*ninq+1]) == 0) { |
| 432 |
< |
d = normalize(orgdir[2*ninq+1]); |
| 433 |
< |
if (d == 0.0) { /* asking for flush? */ |
| 432 |
> |
if (orgdir[2*ninq+1][0] == 0.0 && /* asking for flush? */ |
| 433 |
> |
(orgdir[2*ninq+1][1] == 0.0) & |
| 434 |
> |
(orgdir[2*ninq+1][2] == 0.0)) { |
| 435 |
|
if (accumulate != 1) { |
| 436 |
|
if (!ignore_warning_given++) |
| 437 |
|
error(WARNING, |