| # | Line 34 | Line 34 | register VIEW *v; | |
|---|---|---|
| 34 | if (v->vaft < -FTINY || (v->vaft > FTINY && v->vaft <= v->vfore)) | |
| 35 | return("illegal fore/aft clipping plane"); | |
| 36 | ||
| 37 | + | if (v->vdist <= FTINY) |
| 38 | + | return("illegal view distance"); |
| 39 | v->vdist *= normalize(v->vdir); /* normalize direction */ | |
| 40 | if (v->vdist == 0.0) | |
| 41 | return("zero view direction"); | |
| # | Line 349 | Line 351 | register char *av[]; | |
| 351 | v->vdir[0] = atof(av[1]); | |
| 352 | v->vdir[1] = atof(av[2]); | |
| 353 | v->vdir[2] = atof(av[3]); | |
| 354 | + | v->vdist = 1.; |
| 355 | return(3); | |
| 356 | case 'u': /* up */ | |
| 357 | check(3,"fff"); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |