| # | Line 330 | Line 330 | sourcehit( /* check to see if ray hit distant source | |
|---|---|---|
| 330 | */ | |
| 331 | if (2.*PI*(1. - DOT(source[i].sloc,r->rdir)) > source[i].ss2) | |
| 332 | continue; | |
| 333 | < | /* is it the only possibility? */ |
| 334 | < | if (first == last) { |
| 333 | > | /* is it what we aimed for? */ |
| 334 | > | if (i == r->rsrc) { |
| 335 | r->ro = source[i].so; | |
| 336 | break; | |
| 337 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |