| # | Line 512 | Line 512 | localhit( /* check for hit in the octree */ | |
|---|---|---|
| 512 | else if (r->rdir[i] < -1e-7) | |
| 513 | sflags |= 0x10 << i; | |
| 514 | } | |
| 515 | < | if (sflags == 0) |
| 516 | < | error(CONSISTENCY, "zero ray direction in localhit"); |
| 515 | > | if (!sflags) { |
| 516 | > | error(WARNING, "zero ray direction in localhit"); |
| 517 | > | return(0); |
| 518 | > | } |
| 519 | /* start off assuming nothing hit */ | |
| 520 | if (r->rmax > FTINY) { /* except aft plane if one */ | |
| 521 | r->ro = &Aftplane; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |