| # | Line 160 | Line 160 | rtrace( /* trace rays from file */ | |
|---|---|---|
| 160 | ||
| 161 | d = normalize(direc); | |
| 162 | if (d == 0.0) { /* zero ==> flush */ | |
| 163 | – | if (nproc > 1 && ray_fifo_flush() < 0) |
| 164 | – | error(USER, "lost children"); |
| 165 | – | bogusray(); |
| 163 | if (--nextflush <= 0 || !vcount) { | |
| 164 | + | if (nproc > 1 && ray_fifo_flush() < 0) |
| 165 | + | error(USER, "lost children"); |
| 166 | + | bogusray(); |
| 167 | fflush(stdout); | |
| 168 | nextflush = hresolu; | |
| 169 | < | } |
| 169 | > | } else |
| 170 | > | bogusray(); |
| 171 | } else { /* compute and print */ | |
| 172 | rtcompute(orig, direc, lim_dist ? d : 0.0); | |
| 173 | /* flush if time */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |