| # | Line 251 | Line 251 | register OBJREC *m; | |
|---|---|---|
| 251 | } | |
| 252 | ||
| 253 | ||
| 254 | < | spotout(r, s, dist) /* check if we're outside spot region */ |
| 254 | > | spotout(r, s) /* check if we're outside spot region */ |
| 255 | register RAY *r; | |
| 256 | register SPOT *s; | |
| 257 | – | int dist; |
| 257 | { | |
| 258 | double d; | |
| 259 | FVECT vd; | |
| 260 | ||
| 261 | if (s == NULL) | |
| 262 | return(0); | |
| 263 | < | if (dist) { /* distant source */ |
| 263 | > | if (s->flen < -FTINY) { /* distant source */ |
| 264 | vd[0] = s->aim[0] - r->rorg[0]; | |
| 265 | vd[1] = s->aim[1] - r->rorg[1]; | |
| 266 | vd[2] = s->aim[2] - r->rorg[2]; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |